From 174c2e00354cd69c8398e27a8d51ef36b05c00ca Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Thu, 30 Dec 2021 20:21:27 -0500 Subject: added primitive __repr__ to BasicInstrument --- qolab/hardware/basic.py | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.3