aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/hardware')
-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 0f67cf9..147e8dc 100644
--- a/qolab/hardware/basic.py
+++ b/qolab/hardware/basic.py
@@ -1,5 +1,6 @@
import yaml
from qolab.file_utils import get_next_data_file
+from qolab.tsdb import tsdb_append_metric_for_class_setter_or_getter
class BasicInstrument:
def __init__(self, tsdb_ingester=None):
@@ -15,6 +16,9 @@ class BasicInstrument:
# self.deviceProperties = ['SampleRate', 'TimePerDiv', 'TrigDelay', ];
self.deviceProperties = [];
+ def tsdb_append(f):
+ return tsdb_append_metric_for_class_setter_or_getter()(f)
+
def getConfig(self):
config = self.config.copy()
dconfig = {}