Skip to content

Commit 122c556

Browse files
authored
[releases/1.2] Importing nidcpower.session into output voltage measurement (#399) (#406)
Importing nidcpower.session into output voltage measurement (#399) * Replacing _SessionBase with Session in Output Voltaget Measurement example. * Switching back to _SessionBase and adding import statement to fix issue. * importing nidcpower.session and fixing type hint. --------- Signed-off-by: Chris Delpire <[email protected]>
1 parent 8656f5a commit 122c556

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/output_voltage_measurement/measurement.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import grpc
1414
import hightime
1515
import nidcpower
16+
import nidcpower.session
1617
import pyvisa
1718
from _constants import USE_SIMULATION
1819
from _helpers import (
@@ -182,7 +183,7 @@ def _get_session_info_for_pin(
182183

183184
def _wait_for_source_complete_event(
184185
measurement_service: nims.MeasurementService,
185-
channels: nidcpower._SessionBase,
186+
channels: nidcpower.session._SessionBase,
186187
cancellation_event: threading.Event,
187188
) -> None:
188189
deadline = time.time() + measurement_service.context.time_remaining

0 commit comments

Comments
 (0)