aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2022-01-03 23:14:03 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2022-01-03 23:14:03 -0500
commit56e341a9812840c4c511de110fb405ba596df1a9 (patch)
tree997570b8f609f31a25e82044c621f05c3090f67e /qolab
parent8ecacbc01722902811a9d997213af8d24948809a (diff)
downloadqolab-56e341a9812840c4c511de110fb405ba596df1a9.tar.gz
qolab-56e341a9812840c4c511de110fb405ba596df1a9.zip
using set
Diffstat (limited to 'qolab')
-rw-r--r--qolab/hardware/scope/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qolab/hardware/scope/__init__.py b/qolab/hardware/scope/__init__.py
index f71cd46..2b03e42 100644
--- a/qolab/hardware/scope/__init__.py
+++ b/qolab/hardware/scope/__init__.py
@@ -19,10 +19,10 @@ 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 = {'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', ]
+ self.channelProperties = {'VoltsPerDiv', 'VoltageOffset', }
def getTrace(self, chNum, availableNpnts=None, maxRequiredPoints=None, decimate=True):
# Should work with minimal arguments list