diff options
Diffstat (limited to 'qolab/hardware/basic.py')
-rw-r--r-- | qolab/hardware/basic.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qolab/hardware/basic.py b/qolab/hardware/basic.py index 5e8d17d..387c4b2 100644 --- a/qolab/hardware/basic.py +++ b/qolab/hardware/basic.py @@ -45,6 +45,9 @@ class BasicInstrument: config = self.config.copy() dconfig = {} for p in self.deviceProperties: + if hasattr(self, p) or hasattr(type(self), p): + dconfig[p] = getattr(self, p) + continue getter = f'get{p}' if not hasattr(self, getter): print(f'warning no getter for {p}, i.e. {getter} is missing') |