Currently calibrateIntensity can completely destroy spectra by accepting a scaling factor that equals zero. That results in an empty spectrum (in fact all intensities are Inf and isEmpty returns TRUE).
This should not happen and the user should be informed by a warning.
Currently
calibrateIntensity
can completely destroy spectra by accepting a scaling factor that equals zero. That results in an empty spectrum (in fact all intensities areInf
andisEmpty
returnsTRUE
). This should not happen and the user should be informed by a warning.