nanophotonics / nplab

Core functions and instrument scripts for the Nanophotonics lab experimental scripts
GNU General Public License v3.0
38 stars 15 forks source link

set TEC temperature on OO spectrometers crashes out #112

Closed imanyakin closed 4 years ago

imanyakin commented 4 years ago

Running GUI, this will block the command line until the window is closed. Traceback (most recent call last): File "C:\Users\im354\workspace\nplab\nplab\instrument\spectrometer\seabreeze.py", line 474, in gui_set_tec_temperature self.spectrometer.set_tec_temperature(float(temp_value)) TypeError: 'int' object is not callable

eoinell commented 4 years ago

Python 2 or 3?

eoinell commented 4 years ago

86dc8deecc5b67a2f841db888bcb1e806c81ac0e I changed how the gui and the temperature interact so that reading the temperature doesn't set the temperature to the read value. The GUI works fully.. i've reimplemented the property anyway so hopefully any old code will work again