Skip to content

Commit

Permalink
refs #9549. Change warning conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Jun 7, 2014
1 parent a197ebc commit cfcb678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/Algorithms/src/Stitch1D.cpp
Expand Up @@ -463,7 +463,7 @@ namespace Mantid
}
scaleFactor = ratio->readY(0).front();
errorScaleFactor = ratio->readE(0).front();
if(scaleFactor == 0 || boost::math::isnan(scaleFactor))
if(scaleFactor < 1e-2 || scaleFactor > 1e2 || boost::math::isnan(scaleFactor))
{
std::stringstream messageBuffer;
messageBuffer << "Stitch1D calculated scale factor is: " << scaleFactor << ". Check that in both input workspaces the integrated overlap region is non-zero.";
Expand Down

0 comments on commit cfcb678

Please sign in to comment.