aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2024-06-19 15:37:59 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2024-06-19 15:37:59 -0400
commit47a630c4044ee30e55e8eb1ae95ad132b08ac162 (patch)
tree34621ebf36a83504017fc9290ca9d05f8cbef895 /qolab/hardware
parent933ce827e41124445d59be6bdb3139ef16005a49 (diff)
downloadqolab-47a630c4044ee30e55e8eb1ae95ad132b08ac162.tar.gz
qolab-47a630c4044ee30e55e8eb1ae95ad132b08ac162.zip
typo fix: extention -> extension
Diffstat (limited to 'qolab/hardware')
-rw-r--r--qolab/hardware/basic.py4
-rw-r--r--qolab/hardware/scope/__init__.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/qolab/hardware/basic.py b/qolab/hardware/basic.py
index 83fe57c..2161dca 100644
--- a/qolab/hardware/basic.py
+++ b/qolab/hardware/basic.py
@@ -112,7 +112,7 @@ class BasicInstrument:
header = header.split('\n')
return header
- def getNextDataFile(self, extention='dat'):
- fname = get_next_data_file(self.config['FnamePrefix'], self.config['SavePath'], extention=extention)
+ def getNextDataFile(self, extension='dat'):
+ fname = get_next_data_file(self.config['FnamePrefix'], self.config['SavePath'], extension=extension)
return fname
diff --git a/qolab/hardware/scope/__init__.py b/qolab/hardware/scope/__init__.py
index b4bdd0e..bf9df60 100644
--- a/qolab/hardware/scope/__init__.py
+++ b/qolab/hardware/scope/__init__.py
@@ -59,11 +59,11 @@ class Scope(BasicInstrument):
allTraces=self.getAllTraces(**kwargs)
allTraces.plot()
- def save(self, fname=None, item_format='e', availableNpnts=None, maxRequiredPoints=None, decimate=True, extention='dat'):
+ def save(self, fname=None, item_format='e', availableNpnts=None, maxRequiredPoints=None, decimate=True, extension='dat'):
allTraces = self.getAllTraces(availableNpnts=availableNpnts, maxRequiredPoints=maxRequiredPoints, decimate=decimate)
allTraces.config['item_format']=item_format
if fname is None:
- fname = self.getNextDataFile(extention=extention)
+ fname = self.getNextDataFile(extension=extension)
allTraces.save(fname)
print(f'Data saved to: {fname}')
return(fname)