aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-10 22:34:42 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-07-10 22:34:42 -0400
commitb374e2563c50be2113fa60cebe115083947bb81b (patch)
treee5d1dd603a34fc15b53740f2739a48b4cceecc32 /qolab
parenta8158dcd56d3ea3998e8c2677783ba1dd40d503e (diff)
downloadqolab-b374e2563c50be2113fa60cebe115083947bb81b.tar.gz
qolab-b374e2563c50be2113fa60cebe115083947bb81b.zip
removed trailing spaces in basic.py
Diffstat (limited to 'qolab')
-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