diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-26 15:03:13 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-26 15:03:13 -0500 |
commit | bca4943909e7b356f7b224b3827f4ea74dc90d63 (patch) | |
tree | 9deeee8a588fc4915fc33977235849698f3d9bbf | |
parent | 6b3577e3e93a6a9954a16873664348c20a17e603 (diff) | |
download | pyExpControl-bca4943909e7b356f7b224b3827f4ea74dc90d63.tar.gz pyExpControl-bca4943909e7b356f7b224b3827f4ea74dc90d63.zip |
added tsdb_ingester property to the basic instrument
-rw-r--r-- | qolab/hardware/basic.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qolab/hardware/basic.py b/qolab/hardware/basic.py index bbc369e..0f67cf9 100644 --- a/qolab/hardware/basic.py +++ b/qolab/hardware/basic.py @@ -2,12 +2,13 @@ import yaml from qolab.file_utils import get_next_data_file class BasicInstrument: - def __init__(self): + def __init__(self, tsdb_ingester=None): self.config={} self.config['Device type'] = 'Basic Instrument' self.config['Device model'] = 'Model is unset' self.config['FnamePrefix'] = 'basicInstrument' self.config['SavePath'] = './data' + self.tsdb_ingester = tsdb_ingester # deviceProperties must have 'get' and preferably 'set' methods available, # i.e. 'SampleRate' needs getSampleRate() and love to have setSampleRate(value) # they will be used to obtain config and set device according to it |