aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
Diffstat (limited to 'qolab')
-rw-r--r--qolab/hardware/basic.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/qolab/hardware/basic.py b/qolab/hardware/basic.py
index dab32ab..5e8d17d 100644
--- a/qolab/hardware/basic.py
+++ b/qolab/hardware/basic.py
@@ -21,7 +21,21 @@ class BasicInstrument:
self.deviceProperties = [];
def __repr__(self):
- s = f'{self.config}'
+ s = ''
+ s += f'{self.__class__.__name__}('
+ s += 'config={'
+ cstr=[]
+ for k, v in self.config.items():
+ if v is not None:
+ cstr.append(
+ f"'{k}'"
+ ': '
+ f"'{v}'")
+ s += ', '.join(cstr)
+ s += '}'
+ if self.tsdb_ingester is not None:
+ s += f', tsdb_ingester={self.tsdb_ingester}'
+ s += ')'
return(s)
def tsdb_append(f):