From b7c4c06d86b07e24f1fbdca01234cd37ce6a0ec0 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Wed, 15 Jun 2022 16:08:30 -0400 Subject: do not set properties which are not known to an instrument --- qolab/hardware/basic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qolab/hardware/basic.py') 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") -- cgit v1.2.3