Improving code using getters and setters in Python
Posted on Wed 04 December 2019 in Electronics
As I was migrating blog posts from my wordpress website to pelican based static website, I noticed an old python code written for communicating and controlling a Princeton Instruments Acton SP2150i Monochromator.
As I looked at the code, I noticed methods in the class such as get_nm()
and set_nm()
. I …
Continue reading