aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2022-01-03 17:32:59 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2022-01-03 17:32:59 -0500
commit2a7371762487909097963f621364e06e2ab655d9 (patch)
tree9330a4d6edc4d10bacea661e284a3fb880f21930 /qolab
parenta1029d1af454956f54150b12e2a80059bbc1951e (diff)
downloadqolab-2a7371762487909097963f621364e06e2ab655d9.tar.gz
qolab-2a7371762487909097963f621364e06e2ab655d9.zip
added some doc strings
Diffstat (limited to 'qolab')
-rw-r--r--qolab/hardware/basic.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/qolab/hardware/basic.py b/qolab/hardware/basic.py
index 387c4b2..03d98c6 100644
--- a/qolab/hardware/basic.py
+++ b/qolab/hardware/basic.py
@@ -3,7 +3,15 @@ from qolab.file_utils import get_next_data_file
from qolab.tsdb import tsdb_append_metric_for_class_setter_or_getter
class BasicInstrument:
+ """ This is the most basic instrument class """
def __init__(self, config={}, device_nickname=None, tsdb_ingester=None):
+ """
+ device_nickname - used to separate similar instruments,
+ also used as a tag in Time Series DB (TSDB) logging,
+ if not set we fallbacl to 'Device type'
+ tsdb_ingester - used to log to TSDB if not set, the log entry is skipped
+ config - used to add or override default entries
+ """
self.config = {}
self.config['Device type'] = 'Basic Instrument'
self.config['Device model'] = 'Model is unset'