Skip to content

Commit

Permalink
Refs #4814. Simplest conversion ever. Needs work.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Feb 21, 2012
1 parent b285d08 commit 330ce42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Code/Mantid/Framework/Algorithms/src/MedianDetectorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,13 @@ namespace Mantid
<< "\tNumber of failures - " << numFailed << "\n";

setProperty("NumberOfFailures", numFailed);
setProperty("OutputWorkspace", countsWS);

// extract and set the mask result
IAlgorithm_sptr childAlg = createSubAlgorithm("ExtractMask");
childAlg->setProperty( "InputWorkspace", countsWS );
childAlg->executeAsSubAlg();
MatrixWorkspace_sptr maskWS = childAlg->getProperty("OutputWorkspace");
setProperty("OutputWorkspace", maskWS);
}

/** Loads and checks the values passed to the algorithm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class MedianDetectorTestTest : public CxxTest::TestSuite
double m_YSum;
enum spectraIndexConsts{ THEMASKED = 40, SAVEDBYERRORBAR = 143, Nhist = 144 };
//these values must match the values in MedianDetectorTest.h
enum FLAGS{ BAD_VAL = 0, GOOD_VAL = 1 };
enum FLAGS{ BAD_VAL = 1, GOOD_VAL = 0 };

};

Expand Down

0 comments on commit 330ce42

Please sign in to comment.