aboutsummaryrefslogtreecommitdiff
path: root/qolab/hardware
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-26 15:22:28 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-26 15:22:28 -0500
commit57ac5c8bdaa7cd743e76cc432fde3db7e3b816d6 (patch)
tree4733128901b294de5f2b00c3402053e0f5926707 /qolab/hardware
parentbca4943909e7b356f7b224b3827f4ea74dc90d63 (diff)
downloadqolab-57ac5c8bdaa7cd743e76cc432fde3db7e3b816d6.tar.gz
qolab-57ac5c8bdaa7cd743e76cc432fde3db7e3b816d6.zip
cleaner database commit
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 = {}