Skip to content

Commit

Permalink
Re #9891. Set all fitting errors to 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Sep 29, 2014
1 parent c86c4b5 commit 8ee0e90
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Code/Mantid/Framework/MDEvents/src/FitMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,13 @@ namespace Mantid
while(iter)
{
values->setFitData(i,iter->getNormalizedSignal());
double err = iter->getNormalizedError();
if (err <= 0.0) err = 1.0;
values->setFitWeight(i,1/err);
// there is a problem with errors in md workspaces. Until it is solved
// set all weights to 1.0
// code commented out after the next line is the normal way of setting weights
values->setFitWeight(i,1.0);
//double err = iter->getNormalizedError();
//if (err <= 0.0) err = 1.0;
//values->setFitWeight(i,1/err);
iter = dmd->getNextIterator();
++i;
};
Expand Down

0 comments on commit 8ee0e90

Please sign in to comment.