qt3uw / nipiezeojenapy

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Create properties around scale / offset variables. #16

Open gadamc opened 11 months ago

gadamc commented 11 months ago

The scale and offset parameters off the stage controller need to be changed on the fly by the qt3scan application. Of course, a user of an instance of the PiezoControl class can directly modify the underlying variables. But the proper way to do this to guarantee functionality is to make these accessible as a property and then do checks in the setter function.

https://github.com/qt3uw/nipiezeojenapy/blob/4445aef90ee6cce1bd5b9b99d259fb71699979bd/src/nipiezojenapy/controller.py#L91