diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-06-15 16:08:30 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-06-15 16:08:30 -0400 |
commit | b7c4c06d86b07e24f1fbdca01234cd37ce6a0ec0 (patch) | |
tree | d291ab026789a146c7ad90668bb74820fc3255d6 | |
parent | 8f105c24e5b42bb321daf2b66d5c3fedcebfb246 (diff) | |
download | qolab-b7c4c06d86b07e24f1fbdca01234cd37ce6a0ec0.tar.gz qolab-b7c4c06d86b07e24f1fbdca01234cd37ce6a0ec0.zip |
do not set properties which are not known to an instrumentv0.4
-rw-r--r-- | qolab/hardware/basic.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qolab/hardware/basic.py b/qolab/hardware/basic.py index abc9417..83fe57c 100644 --- a/qolab/hardware/basic.py +++ b/qolab/hardware/basic.py @@ -100,9 +100,9 @@ class BasicInstrument: # we have attribute Property setattr(self, p, v) continue - print(f'warning: both {setter} and attribute {p} are missing, making attribute {p}') - self.deviceProperties.add(p) - setattr(self, p, v) + print(f'warning: both {setter} and attribute {p} are missing, skipping {p}') + # self.deviceProperties.add(p) + # setattr(self, p, v) def getTimeStamp(self): return time.strftime("%Y/%m/%d %H:%M:%S") |