aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/basic.py
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/hardware/basic.py')
-rw-r--r--qolab/hardware/basic.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/qolab/hardware/basic.py b/qolab/hardware/basic.py
index 44e8795..f0c2c81 100644
--- a/qolab/hardware/basic.py
+++ b/qolab/hardware/basic.py
@@ -94,7 +94,7 @@ class BasicInstrument:
if not hasattr(self, getter):
print(f'warning no getter for {p}, i.e. {getter} is missing')
continue
- res = getattr(self, getter)(chNum)
+ res = getattr(self, getter)(chNum)
chNconfig[p] = res
chconfig[chNum] = chNconfig
return chconfig
@@ -110,7 +110,7 @@ class BasicInstrument:
if not hasattr(self, getter):
print(f'warning no getter for {p}, i.e. {getter} is missing')
continue
- res = getattr(self, getter)()
+ res = getattr(self, getter)()
dconfig[p] = res
config['DeviceConfig'] = dconfig
if not hasattr(self, 'numberOfChannels'):
@@ -126,7 +126,7 @@ class BasicInstrument:
setter = f'set{p}'
if hasattr(self, setter):
# we have something like setProperty
- getattr(self, setter)(v)
+ getattr(self, setter)(v)
continue
if hasattr(self, p) or hasattr(type(self), p):
# we have attribute Property
@@ -143,7 +143,7 @@ class BasicInstrument:
header = yaml.dump(self.getConfig(), default_flow_style=False, sort_keys=False)
header = header.split('\n')
return header
-
+
def getNextDataFile(self, extension='dat'):
fname = get_next_data_file(self.config['FnamePrefix'], self.config['SavePath'], extension=extension)
return fname