diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-26 18:06:57 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-26 18:06:57 -0500 |
commit | 199d8ba5860aa231d5ac0f1647ea3f69b751ed8c (patch) | |
tree | 9f38b3cf79b7d8ba4181acd0c07bb30a2de835be /qolab | |
parent | fd9d6bcb2601aa28a7c39f083e1a01059e1b4715 (diff) | |
download | qolab-199d8ba5860aa231d5ac0f1647ea3f69b751ed8c.tar.gz qolab-199d8ba5860aa231d5ac0f1647ea3f69b751ed8c.zip |
added DeviceNickname field to config
Diffstat (limited to 'qolab')
-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 147e8dc..d42dea2 100644 --- a/qolab/hardware/basic.py +++ b/qolab/hardware/basic.py @@ -3,10 +3,11 @@ from qolab.file_utils import get_next_data_file from qolab.tsdb import tsdb_append_metric_for_class_setter_or_getter class BasicInstrument: - def __init__(self, tsdb_ingester=None): + def __init__(self, device_nickname=None, tsdb_ingester=None): self.config={} self.config['Device type'] = 'Basic Instrument' self.config['Device model'] = 'Model is unset' + self.config['DeviceNickname'] = device_nickname; # to separate similar instruments self.config['FnamePrefix'] = 'basicInstrument' self.config['SavePath'] = './data' self.tsdb_ingester = tsdb_ingester |