Skip to content

Commit

Permalink
Re #5021. Fix system tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellTaylor committed Mar 26, 2012
1 parent da676cc commit 7d670fd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ namespace MDEvents
alg->setProperty("GenerateMultipleEvents", false); // One event per bin by default
alg->setPropertyValue("OutputWorkspace", getPropertyValue("InputWorkspace") + "_event");
alg->executeAsSubAlg();
m_inWS = alg->getProperty("OutputWorkspace");
EventWorkspace_sptr eventWS = alg->getProperty("OutputWorkspace");
m_inWS = boost::dynamic_pointer_cast<MatrixWorkspace>(eventWS);
if (!alg->isExecuted() || !m_inWS)
throw std::runtime_error("Error in ConvertToEventWorkspace. Cannot proceed.");
}
Expand Down

0 comments on commit 7d670fd

Please sign in to comment.