aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/lock_eit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/lock_eit.py b/examples/lock_eit.py
index ce9e452..2ecdf15 100644
--- a/examples/lock_eit.py
+++ b/examples/lock_eit.py
@@ -170,7 +170,7 @@ async def calibratingLockin(apparatus, extra_tags={}):
logger.info(f'dE = {dE}')
logger.info(f'lockin error signal slope = {slope} V/Hz')
- ai['error_signal_response_to_eit_detuning'].conversion_factor = slope
+ ai['error_signal_response_to_eit_detuning'].conversion_factor = float(slope)
return float(slope)
@@ -217,7 +217,7 @@ async def responseToChangeOfBfieldControlVoltage(apparatus, extra_tags={}):
logger.info(f'df = {df}')
logger.info(f'response to magnetic control voltage = {slope} Hz/V')
- ai['B_control_voltage_to_eit_detuning'].conversion_factor = slope
+ ai['B_control_voltage_to_eit_detuning'].conversion_factor = float(slope)
# relock to default state
ai['lockin'].AuxOut1=0