diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-01-07 20:26:09 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-01-07 20:26:09 -0500 |
commit | 7c15a454512d5b541ced23371613ffb172ce2a34 (patch) | |
tree | c915fd9841fb0ce5f0f5d761718d2e98a504b548 /examples/lock_eit.py | |
parent | 8428afa945352384bd0c5859e25bc7111fdcc0c5 (diff) | |
download | qolab-7c15a454512d5b541ced23371613ffb172ce2a34.tar.gz qolab-7c15a454512d5b541ced23371613ffb172ce2a34.zip |
safety net for assigning conversion_factor
Diffstat (limited to 'examples/lock_eit.py')
-rw-r--r-- | examples/lock_eit.py | 4 |
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 |