Changed If statement in Auto mass detector, so now thresholded data is processed via exact mass detection algorithm.
@@ -50,7 +50,7 @@ public class AutoMassDetector implements MassDetector {
@Override
public double[][] getMassValues(MassSpectrum spectrum, ParameterSet parameters) {
- if (spectrum.getSpectrumType() == MassSpectrumType.PROFILE) {
+ if (spectrum.getSpectrumType() != MassSpectrumType.CENTROIDED) {
return exactMassDetector.getMassValues(spectrum, getExactParam(parameters));
} else {
return centroidDetector.getMassValues(spectrum, getCentroidParam(parameters));
