From 8f5f57c0832893b3536a918e3447bd71bf42b1fd Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Tue, 14 Dec 2021 09:41:28 -0500 Subject: BasicInstrument now has getNextDataFile --- qolab/hardware/basic.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qolab/hardware/basic.py') 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 -- cgit v1.2.3