LISE-B26 / pylabcontrol

pylabcontrol: Laboratory Equipment Control for Scientific Experiments.
GNU General Public License v3.0
9 stars 9 forks source link

updating settings of instruments doesn't seem to be working using self.(field) notation #146

Open emmarosenfeld opened 6 years ago

emmarosenfeld commented 6 years ago

When we try to update a field in settings using the notation self.(field), the field is not created or updated.

E.g. if updating the position of the DC servo motor with:

self.position = 5

self.position still has value None (even when the field self.settings['position'] already exists). However, if we do:

self.settings['position'] = 5

then the position is updated appropriately.