aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2022-06-15 16:08:30 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2022-06-15 16:08:30 -0400
commitb7c4c06d86b07e24f1fbdca01234cd37ce6a0ec0 (patch)
treed291ab026789a146c7ad90668bb74820fc3255d6 /qolab
parent8f105c24e5b42bb321daf2b66d5c3fedcebfb246 (diff)
downloadqolab-b7c4c06d86b07e24f1fbdca01234cd37ce6a0ec0.tar.gz
qolab-b7c4c06d86b07e24f1fbdca01234cd37ce6a0ec0.zip
do not set properties which are not known to an instrumentv0.4
Diffstat (limited to 'qolab')
-rw-r--r--qolab/hardware/basic.py6
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")