Skip to content

Commit

Permalink
#819 - Skip peak validation in edge cases
Browse files Browse the repository at this point in the history
The classifier shall be only set if the width by inflection point
criteria is not matched, but the check shall be skipped.
  • Loading branch information
eselmeister committed Nov 25, 2021
1 parent 4b159a3 commit 8d3e657
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,9 @@ public void addPeak(T peak) {
boolean addPeak = false;
if(PreferenceSupplier.isSkipPeakWidthCheck()) {
addPeak = true;
peak.addClassifier("Skipped Peak Width Check");
if(peak.getPeakModel().getWidthByInflectionPoints() <= 0) {
peak.addClassifier("Skipped Peak Width Check");
}
} else {
addPeak = peak.getPeakModel().getWidthByInflectionPoints() > 0;
}
Expand Down

0 comments on commit 8d3e657

Please sign in to comment.