diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-06-14 22:55:36 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-06-14 22:55:36 -0400 |
commit | 8f105c24e5b42bb321daf2b66d5c3fedcebfb246 (patch) | |
tree | 9bb3fd2df50b5d92b5c95751af34999d8b73ba1d /examples/lock_eit.py | |
parent | e3a75169865ad47148586ad99b75ceffdd6345be (diff) | |
download | qolab-8f105c24e5b42bb321daf2b66d5c3fedcebfb246.tar.gz qolab-8f105c24e5b42bb321daf2b66d5c3fedcebfb246.zip |
proper inheritance of the parent deviceProperties
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 e6ba3a5..af3c894 100644 --- a/examples/lock_eit.py +++ b/examples/lock_eit.py @@ -359,13 +359,13 @@ async def main(): apparatus.runStatus = False error_signal_response_to_eit_detuning = BasicInstrument(device_nickname='.'.join([app_nickname, 'error_signal_response_to_eit_detuning']), tsdb_ingester=tsdb_ingester) - error_signal_response_to_eit_detuning.deviceProperties = {'conversion_factor', 'unit'} + error_signal_response_to_eit_detuning.deviceProperties.update({'conversion_factor', 'unit'}) error_signal_response_to_eit_detuning.conversion_factor = None error_signal_response_to_eit_detuning.unit = 'V_per_Hz' ai['error_signal_response_to_eit_detuning']=error_signal_response_to_eit_detuning B_control_voltage_to_eit_detuning = BasicInstrument(device_nickname='.'.join([app_nickname, 'B_control_voltage_to_eit_detuning']), tsdb_ingester=tsdb_ingester) - B_control_voltage_to_eit_detuning.deviceProperties = {'conversion_factor', 'unit'} + B_control_voltage_to_eit_detuning.deviceProperties.update({'conversion_factor', 'unit'}) B_control_voltage_to_eit_detuning.conversion_factor = None B_control_voltage_to_eit_detuning.unit = 'Hz_per_V' ai['B_control_voltage_to_eit_detuning'] = B_control_voltage_to_eit_detuning |