From 7c15a454512d5b541ced23371613ffb172ce2a34 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Fri, 7 Jan 2022 20:26:09 -0500 Subject: safety net for assigning conversion_factor --- examples/lock_eit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/lock_eit.py') 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 -- cgit v1.2.3