diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-30 20:21:27 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-30 20:21:27 -0500 |
commit | 174c2e00354cd69c8398e27a8d51ef36b05c00ca (patch) | |
tree | 9b9e322d003588f948e04399b687f9962850439d | |
parent | 8a35d9e498ddd10b2e7524eeb8e0d00cb483a498 (diff) | |
download | pyExpControl-174c2e00354cd69c8398e27a8d51ef36b05c00ca.tar.gz pyExpControl-174c2e00354cd69c8398e27a8d51ef36b05c00ca.zip |
added primitive __repr__ to BasicInstrument
-rw-r--r-- | qolab/hardware/basic.py | 4 |
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) |