From 5604de2aca7204f57db57e16d1856cb88bdb3501 Mon Sep 17 00:00:00 2001 From: Michael Wedel Date: Wed, 22 Apr 2015 15:48:37 +0200 Subject: [PATCH] Refs #11616. More strict criteria for acceptable peaks --- Code/Mantid/Framework/SINQ/src/PoldiFitPeaks1D2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/Mantid/Framework/SINQ/src/PoldiFitPeaks1D2.cpp b/Code/Mantid/Framework/SINQ/src/PoldiFitPeaks1D2.cpp index f009cceecec6..9cdccd5afe0d 100644 --- a/Code/Mantid/Framework/SINQ/src/PoldiFitPeaks1D2.cpp +++ b/Code/Mantid/Framework/SINQ/src/PoldiFitPeaks1D2.cpp @@ -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() {