Skip to content

Commit

Permalink
Try to fix systemtest. Refs #7787
Browse files Browse the repository at this point in the history
It seems like python has problems with passing ints through property
manager. Switching to double
  • Loading branch information
AndreiSavici committed Aug 22, 2013
1 parent 55cf262 commit 3e955ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Code/Mantid/Framework/WorkflowAlgorithms/src/DgsDiagnose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ namespace Mantid
reductionManager, "diag_van_hi", detVanWS);
const double vanLo = getDblPropOrParam("MedianTestLow",
reductionManager, "diag_van_lo", detVanWS);
const int vanLevelsUp=getIntPropOrParam("MedianTestLevelsUp",
reductionManager, "diag_van_levels", detVanWS);
const double vanLevelsUp=getDblPropOrParam("MedianTestLevelsUp",
reductionManager, "diag_van_levels", detVanWS,0);
const double vanSigma = getDblPropOrParam("ErrorBarCriterion",
reductionManager, "diag_van_sig", detVanWS);
const double variation = getDblPropOrParam("DetVanRatioVariation",
Expand Down Expand Up @@ -307,7 +307,7 @@ namespace Mantid
diag->setProperty("HighOutlier", vanOutHi);
diag->setProperty("LowThresholdFraction", vanLo);
diag->setProperty("HighThresholdFraction", vanHi);
diag->setProperty("LevelsUp",vanLevelsUp);
diag->setProperty("LevelsUp",static_cast<int>(vanLevelsUp));
diag->setProperty("CorrectForSolidAngle",vanSA);
diag->setProperty("SignificanceTest", vanSigma);
diag->setProperty("DetVanRatioVariation", variation);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ namespace Mantid
"Mask detectors below this threshold.");
this->setPropertySettings("MedianTestLow",
new VisibleWhenProperty("DetectorVanadiumInputFile", IS_NOT_EQUAL_TO, ""));
this->declareProperty("MedianTestLevelsUp", 0, mustBePositiveInt,
this->declareProperty("MedianTestLevelsUp", 0., mustBePositive,
"Mask detectors below this threshold.");
this->setPropertySettings("MedianTestLevelsUp",
new VisibleWhenProperty("DetectorVanadiumInputFile", IS_NOT_EQUAL_TO, ""));
Expand Down

0 comments on commit 3e955ad

Please sign in to comment.