From d53f08d5cdc4d13f6d0002bd39fef843ca0275d0 Mon Sep 17 00:00:00 2001 From: DelpireNI <71399316+DelpireNI@users.noreply.github.com> Date: Fri, 22 Sep 2023 17:11:20 -0500 Subject: [PATCH] Importing nidcpower.session into output voltage measurement (#399) * Replacing _SessionBase with Session in Output Voltaget Measurement example. Signed-off-by: Chris Delpire * Switching back to _SessionBase and adding import statement to fix issue. * importing nidcpower.session and fixing type hint. Signed-off-by: Chris Delpire --------- Signed-off-by: Chris Delpire --- examples/output_voltage_measurement/measurement.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/output_voltage_measurement/measurement.py b/examples/output_voltage_measurement/measurement.py index 2c5b3262f..ea0528354 100644 --- a/examples/output_voltage_measurement/measurement.py +++ b/examples/output_voltage_measurement/measurement.py @@ -13,6 +13,7 @@ import grpc import hightime import nidcpower +import nidcpower.session import pyvisa from _constants import USE_SIMULATION from _helpers import ( @@ -174,7 +175,7 @@ def _get_session_info_for_pin( def _wait_for_source_complete_event( measurement_service: nims.MeasurementService, - channels: nidcpower._SessionBase, + channels: nidcpower.session._SessionBase, cancellation_event: threading.Event, ) -> None: deadline = time.time() + measurement_service.context.time_remaining