From b374e2563c50be2113fa60cebe115083947bb81b Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Wed, 10 Jul 2024 22:34:42 -0400 Subject: removed trailing spaces in basic.py --- qolab/hardware/basic.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'qolab/hardware/basic.py') 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 -- cgit v1.2.3