aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/basic.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-14 09:41:28 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-14 09:41:43 -0500
commit8f5f57c0832893b3536a918e3447bd71bf42b1fd (patch)
tree6d1812f89d1a4a4fb9bcf0ad11af8b97b097ab81 /qolab/hardware/basic.py
parentba7cd44c5e274a2261a795bf1a6e67e36ac40c90 (diff)
downloadqolab-8f5f57c0832893b3536a918e3447bd71bf42b1fd.tar.gz
qolab-8f5f57c0832893b3536a918e3447bd71bf42b1fd.zip
BasicInstrument now has getNextDataFile
Diffstat (limited to 'qolab/hardware/basic.py')
-rw-r--r--qolab/hardware/basic.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/qolab/hardware/basic.py b/qolab/hardware/basic.py
index fa2ccb5..bbc369e 100644
--- a/qolab/hardware/basic.py
+++ b/qolab/hardware/basic.py
@@ -1,4 +1,5 @@
import yaml
+from qolab.file_utils import get_next_data_file
class BasicInstrument:
def __init__(self):
@@ -30,4 +31,8 @@ class BasicInstrument:
header = yaml.dump(self.getConfig(), default_flow_style=False, sort_keys=False)
header = header.split('\n')
return header
+
+ def getNextDataFile(self, extention='dat'):
+ fname = get_next_data_file(self.config['FnamePrefix'], self.config['SavePath'], extention=extention)
+ return fname