Skip to content

Commit

Permalink
Refs #8506. Better property option name.
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbekasov committed Nov 27, 2013
1 parent bec5077 commit 60ccf5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace WorkflowAlgorithms

std::vector<std::string> dtcTypes;
dtcTypes.push_back("None");
dtcTypes.push_back("FromData");
dtcTypes.push_back("FromRunData");
dtcTypes.push_back("FromSpecifiedFile");

declareProperty("DtcType","None", boost::make_shared<StringListValidator>(dtcTypes),
Expand Down Expand Up @@ -102,7 +102,7 @@ namespace WorkflowAlgorithms
{
Workspace_sptr deadTimes;

if ( dtcType == "FromData" )
if ( dtcType == "FromRunData" )
{
deadTimes = loadAlg->getProperty("DeadTimeTable");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class MuonLoadCorrectedTest : public CxxTest::TestSuite
TS_ASSERT( alg.isInitialized() )

TS_ASSERT_THROWS_NOTHING( alg.setPropertyValue("Filename", "emu00006473.nxs") );
TS_ASSERT_THROWS_NOTHING( alg.setPropertyValue("DTCType", "FromData") );
TS_ASSERT_THROWS_NOTHING( alg.setPropertyValue("DTCType", "FromRunData") );
TS_ASSERT_THROWS_NOTHING( alg.setPropertyValue("OutputWorkspace", g_outWSName) );

TS_ASSERT_THROWS_NOTHING( alg.execute(); );
Expand Down Expand Up @@ -183,7 +183,7 @@ class MuonLoadCorrectedTest : public CxxTest::TestSuite
TS_ASSERT( alg.isInitialized() )

TS_ASSERT_THROWS_NOTHING( alg.setPropertyValue("Filename", "MUSR00015189.nxs") );
TS_ASSERT_THROWS_NOTHING( alg.setPropertyValue("DTCType", "FromData") );
TS_ASSERT_THROWS_NOTHING( alg.setPropertyValue("DTCType", "FromRunData") );
TS_ASSERT_THROWS_NOTHING( alg.setPropertyValue("OutputWorkspace", g_outWSName) );

TS_ASSERT_THROWS_NOTHING( alg.execute(); );
Expand Down

0 comments on commit 60ccf5a

Please sign in to comment.