aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware/basic.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-30 20:21:27 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-30 20:21:27 -0500
commit174c2e00354cd69c8398e27a8d51ef36b05c00ca (patch)
tree9b9e322d003588f948e04399b687f9962850439d /qolab/hardware/basic.py
parent8a35d9e498ddd10b2e7524eeb8e0d00cb483a498 (diff)
downloadqolab-174c2e00354cd69c8398e27a8d51ef36b05c00ca.tar.gz
qolab-174c2e00354cd69c8398e27a8d51ef36b05c00ca.zip
added primitive __repr__ to BasicInstrument
Diffstat (limited to 'qolab/hardware/basic.py')
-rw-r--r--qolab/hardware/basic.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/qolab/hardware/basic.py b/qolab/hardware/basic.py
index abfbc18..ee412db 100644
--- a/qolab/hardware/basic.py
+++ b/qolab/hardware/basic.py
@@ -18,6 +18,10 @@ class BasicInstrument:
# self.deviceProperties = ['SampleRate', 'TimePerDiv', 'TrigDelay', ];
self.deviceProperties = [];
+ def __repr__(self):
+ s = f'{self.config}'
+ return(s)
+
def tsdb_append(f):
return tsdb_append_metric_for_class_setter_or_getter()(f)