diff options
-rw-r--r-- | examples/eit_with_vcsel.py | 2 | ||||
-rw-r--r-- | examples/lock_eit.py | 4 | ||||
-rw-r--r-- | qolab/feedback/__init__.py | 2 | ||||
-rw-r--r-- | qolab/hardware/daq/__init__.py | 2 | ||||
-rw-r--r-- | qolab/hardware/i_server/i800.py | 2 | ||||
-rw-r--r-- | qolab/hardware/lockin/__init__.py | 4 | ||||
-rw-r--r-- | qolab/hardware/power_supply/__init__.py | 2 | ||||
-rw-r--r-- | qolab/hardware/power_supply/keysight_e3612a.py | 2 | ||||
-rw-r--r-- | qolab/hardware/rf_generator/__init__.py | 2 | ||||
-rw-r--r-- | qolab/hardware/scope/__init__.py | 2 | ||||
-rw-r--r-- | qolab/hardware/scpi.py | 2 | ||||
-rw-r--r-- | qolab/tsdb/__init__.py | 2 |
12 files changed, 14 insertions, 14 deletions
diff --git a/examples/eit_with_vcsel.py b/examples/eit_with_vcsel.py index 03dbf34..ed0854e 100644 --- a/examples/eit_with_vcsel.py +++ b/examples/eit_with_vcsel.py @@ -46,7 +46,7 @@ class BfieldDriver(KeysightE3612A): super().__init__(*args, **kwds) self.config['Device type'] = 'B field coil driver based on Keysight E3612A power supply' self.config['Device model'] = 'v0.1' - self.deviceProperties = self.deviceProperties.union({'B', 'Bslope_TperA', 'CoilAssignment'}) + self.deviceProperties.update({'B', 'Bslope_TperA', 'CoilAssignment'}) """" Rough magnetic field calibration of the 3 axes coils in large magnetic shield - Ch1: 70mA -> 650 kHz shift for delta m = 2 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 diff --git a/qolab/feedback/__init__.py b/qolab/feedback/__init__.py index e6785fc..e2dc3c0 100644 --- a/qolab/feedback/__init__.py +++ b/qolab/feedback/__init__.py @@ -7,7 +7,7 @@ class PID(BasicInstrument): self.config['Device model'] = 'Generic Software PID loop' self.config['Device type']='PID loop' self.config['FnamePrefix'] = 'pid' - self.deviceProperties = {'Gp', 'Gi', 'Gd', 'Sign', 'Enable'}; + self.deviceProperties.update({'Gp', 'Gi', 'Gd', 'Sign', 'Enable'}) self.setGp(Gp) self.setGi(Gi) self.setGd(Gd) diff --git a/qolab/hardware/daq/__init__.py b/qolab/hardware/daq/__init__.py index d0798c6..89543a6 100644 --- a/qolab/hardware/daq/__init__.py +++ b/qolab/hardware/daq/__init__.py @@ -7,7 +7,7 @@ class DAQ(BasicInstrument): self.config['Device type']='DAQ' self.config['Device model'] = 'Generic DAQ Without Hardware interface' self.config['FnamePrefix'] = 'daq' - self.deviceProperties = {'AnalogInputsNum', 'AnalogOutputsNum' } + self.deviceProperties.update({'AnalogInputsNum', 'AnalogOutputsNum'}) # this is device dependent self.AnalogInputsNum=0 diff --git a/qolab/hardware/i_server/i800.py b/qolab/hardware/i_server/i800.py index 264316a..89042d5 100644 --- a/qolab/hardware/i_server/i800.py +++ b/qolab/hardware/i_server/i800.py @@ -31,7 +31,7 @@ class I800(BasicInstrument): self.config['Device type']='TemperatureController' self.config['Device model'] = 'i800' self.config['FnamePrefix'] = 'temperature' - self.deviceProperties = {'Temperature', 'SetPoint1', 'SetPoint2'} + self.deviceProperties.update({'Temperature', 'SetPoint1', 'SetPoint2'}) def query(self, cmnd, trials=10): modbus_cmnd = f'{self.modbus_address}{cmnd}' diff --git a/qolab/hardware/lockin/__init__.py b/qolab/hardware/lockin/__init__.py index e6dc75b..ab862cb 100644 --- a/qolab/hardware/lockin/__init__.py +++ b/qolab/hardware/lockin/__init__.py @@ -8,9 +8,9 @@ class Lockin(BasicInstrument): self.config['FnamePrefix'] = 'lockin' self.config['Device model'] = 'Generic Lockin Without Hardware interface' self.config['FnamePrefix'] = 'lockin' - self.deviceProperties = {'FreqInt', 'FreqExt', 'Harm', 'SinAmpl', 'SinOffset', + self.deviceProperties.update({'FreqInt', 'FreqExt', 'Harm', 'SinAmpl', 'SinOffset', 'RefPhase', - 'Sensitivity', 'TimeConstan', 'FilterSlope', 'EquivalentNoiseBW'}; + 'Sensitivity', 'TimeConstan', 'FilterSlope', 'EquivalentNoiseBW'}) # Minimal set of methods to be implemented. pass diff --git a/qolab/hardware/power_supply/__init__.py b/qolab/hardware/power_supply/__init__.py index b1083cf..5ec4ab9 100644 --- a/qolab/hardware/power_supply/__init__.py +++ b/qolab/hardware/power_supply/__init__.py @@ -8,7 +8,7 @@ class PowerSupply(BasicInstrument): self.config['Device type']='PowerSupply' self.config['Device model'] = 'Generic Power Supply generator Without Hardware interface' self.config['FnamePrefix'] = 'power_supply' - self.deviceProperties = { } + self.deviceProperties.update({}) class PowerSupplySCPI(SCPIinstr, PowerSupply): """ diff --git a/qolab/hardware/power_supply/keysight_e3612a.py b/qolab/hardware/power_supply/keysight_e3612a.py index e106279..b241b30 100644 --- a/qolab/hardware/power_supply/keysight_e3612a.py +++ b/qolab/hardware/power_supply/keysight_e3612a.py @@ -9,7 +9,7 @@ class KeysightE3612A(PowerSupplySCPI): self.resource.read_termination='\n' self.config['Device model'] = 'Keysight E3612A' self.numberOfChannels = 3 - self.deviceProperties = {'OpMode', }; + self.deviceProperties.update({'OpMode'}) self.channelProperties = {'IsOn', 'Regulation', 'Vout', 'Vlimit', 'Iout', 'Ilimit', 'dV', 'dI', } self.deffaultChannelR = 47; # used if no empirical way to calculate it via Vout/Iout diff --git a/qolab/hardware/rf_generator/__init__.py b/qolab/hardware/rf_generator/__init__.py index efa1af4..9c99eca 100644 --- a/qolab/hardware/rf_generator/__init__.py +++ b/qolab/hardware/rf_generator/__init__.py @@ -8,7 +8,7 @@ class RFGenerator(BasicInstrument): self.config['Device type']='RFGenerator' self.config['Device model'] = 'Generic RF generator Without Hardware interface' self.config['FnamePrefix'] = 'rfgen' - self.deviceProperties = {'FreqFixed', } + self.deviceProperties.update({'FreqFixed'}) class RFGeneratorSCPI(SCPIinstr, RFGenerator): """ diff --git a/qolab/hardware/scope/__init__.py b/qolab/hardware/scope/__init__.py index debe668..3bca8f0 100644 --- a/qolab/hardware/scope/__init__.py +++ b/qolab/hardware/scope/__init__.py @@ -19,7 +19,7 @@ class Scope(BasicInstrument): # deviceProperties must have 'get' and preferably 'set' methods available, # i.e. 'SampleRate' needs getSampleRate() and love to have setSampleRate(value) # they will be used to obtain config and set device according to it - self.deviceProperties = {'SampleRate', 'TimePerDiv', 'TrigDelay', 'TriggerMode', 'Roll', 'Run' }; + self.deviceProperties.update({'SampleRate', 'TimePerDiv', 'TrigDelay', 'TriggerMode', 'Roll', 'Run' }) # same is applied to channelProperties but we need setter/getter with channel number # i.e. VoltsPerDiv -> getChanVoltsPerDiv(chNum) and setSampleRate(chNum, value) self.channelProperties = {'VoltsPerDiv', 'VoltageOffset', } diff --git a/qolab/hardware/scpi.py b/qolab/hardware/scpi.py index 4eab5aa..328e261 100644 --- a/qolab/hardware/scpi.py +++ b/qolab/hardware/scpi.py @@ -199,7 +199,7 @@ if __name__ == '__main__': z = SCPI_PROPERTY(scpi_prfx='SETY', ptype=int, no_getter=True, doc='property Z') c1= DummyInstrument() - c1.deviceProperties={'x', 'y'} + c1.deviceProperties.update({'x', 'y'}) c1.getConfig() c2= DummyInstrument() diff --git a/qolab/tsdb/__init__.py b/qolab/tsdb/__init__.py index 48312e9..4b2aaaf 100644 --- a/qolab/tsdb/__init__.py +++ b/qolab/tsdb/__init__.py @@ -81,7 +81,7 @@ if __name__ == '__main__': self.config['Device model'] = 'v01' self.config['FnamePrefix'] = 'test_log' self.config['SavePath'] = './data' - self.deviceProperties = {'D'}; + self.deviceProperties.update({'D'}) self.d = 13.45 |