From 199d8ba5860aa231d5ac0f1647ea3f69b751ed8c Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Sun, 26 Dec 2021 18:06:57 -0500 Subject: added DeviceNickname field to config --- qolab/hardware/basic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qolab/hardware') 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 -- cgit v1.2.3