Skip to content

Commit

Permalink
Refs #5453 and #5678. Forgot some parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Aug 16, 2012
1 parent 01ecbd7 commit 57a6329
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/Mantid/Framework/WorkflowAlgorithms/src/DgsDiagnose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ namespace WorkflowAlgorithms
// Numeric properties
const double huge = reductionManager->getProperty("HighCounts");
const double tiny = reductionManager->getProperty("LowCounts");
const double vanOutHi = reductionManager->getProperty("HighOutlier");
const double vanOutLo = reductionManager->getProperty("LowOutlier");
const double vanHi = reductionManager->getProperty("MedianTestHigh");
const double vanLo = reductionManager->getProperty("MedianTestLow");
const double vanSigma = reductionManager->getProperty("ErrorBarCriterion");
Expand Down Expand Up @@ -256,6 +258,8 @@ namespace WorkflowAlgorithms
diag->setProperty("SampleBackgroundWorkspace", backgroundIntWS);
diag->setProperty("LowThreshold", tiny);
diag->setProperty("HighThreshold", huge);
diag->setProperty("LowOutlier", vanOutLo);
diag->setProperty("HighOutlier", vanOutHi);
diag->setProperty("LowThresholdFraction", vanLo);
diag->setProperty("HighThresholdFraction", vanHi);
diag->setProperty("SignificanceTest", vanSigma);
Expand Down
10 changes: 10 additions & 0 deletions Code/Mantid/Framework/WorkflowAlgorithms/src/DgsReduction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,14 @@ namespace WorkflowAlgorithms
"Mask detectors below this threshold.");
this->setPropertySettings("LowCounts",
new VisibleWhenProperty("FindBadDetectors", IS_EQUAL_TO, "1"));
this->declareProperty("LowOutlier", 0.01,
"Lower bound defining outliers as fraction of median value");
this->setPropertySettings("LowOutlier",
new VisibleWhenProperty("FindBadDetectors", IS_EQUAL_TO, "1"));
this->declareProperty("HighOutlier", 100.,
"Upper bound defining outliers as fraction of median value");
this->setPropertySettings("HighOutlier",
new VisibleWhenProperty("FindBadDetectors", IS_EQUAL_TO, "1"));
this->declareProperty("MedianTestHigh", 3.0, mustBePositive,
"Mask detectors above this threshold.");
this->setPropertySettings("MedianTestHigh",
Expand Down Expand Up @@ -261,6 +269,8 @@ namespace WorkflowAlgorithms
this->setPropertyGroup("OutputMaskFile", findBadDets);
this->setPropertyGroup("HighCounts", findBadDets);
this->setPropertyGroup("LowCounts", findBadDets);
this->setPropertyGroup("LowOutlier", findBadDets);
this->setPropertyGroup("HighOutlier", findBadDets);
this->setPropertyGroup("MedianTestHigh", findBadDets);
this->setPropertyGroup("MedianTestLow", findBadDets);
this->setPropertyGroup("ErrorBarCriterion", findBadDets);
Expand Down

0 comments on commit 57a6329

Please sign in to comment.