Skip to content

Commit

Permalink
Importing nidcpower.session into output voltage measurement (#399)
Browse files Browse the repository at this point in the history
* Replacing _SessionBase with Session in Output Voltaget Measurement example.

Signed-off-by: Chris Delpire <[email protected]>

* 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]>

---------

Signed-off-by: Chris Delpire <[email protected]>
  • Loading branch information
DelpireNI authored Sep 22, 2023
1 parent 9bffe48 commit d53f08d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/output_voltage_measurement/measurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import grpc
import hightime
import nidcpower
import nidcpower.session
import pyvisa
from _constants import USE_SIMULATION
from _helpers import (
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d53f08d

Please sign in to comment.