From bca4943909e7b356f7b224b3827f4ea74dc90d63 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 26 Dec 2021 15:03:13 -0500 Subject: added tsdb_ingester property to the basic instrument --- qolab/hardware/basic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3