fixed spectrometer.get_intensity