Skip to content

Commit

Permalink
Refs #11616. More strict criteria for acceptable peaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wedel committed Apr 22, 2015
1 parent 00f8e43 commit 5604de2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/Mantid/Framework/SINQ/src/PoldiFitPeaks1D2.cpp
Expand Up @@ -363,7 +363,8 @@ PoldiPeakCollection_sptr PoldiFitPeaks1D2::getReducedPeakCollection(
}

bool PoldiFitPeaks1D2::peakIsAcceptable(const PoldiPeak_sptr &peak) const {
return peak->intensity() > 0 && peak->fwhm(PoldiPeak::Relative) < 0.02;
return peak->intensity() > 0 && peak->fwhm(PoldiPeak::Relative) < 0.02 &&
peak->fwhm(PoldiPeak::Relative) > 0.001 && peak->d().error() > 0;
}

void PoldiFitPeaks1D2::exec() {
Expand Down

0 comments on commit 5604de2

Please sign in to comment.