Unverified Commit 958e1a74 authored by Hahn, Steven's avatar Hahn, Steven Committed by GitHub
Browse files

Merge pull request #23172 from rosswhitfield/LoadIsawUB_MDHisto

Get LoadIsawUB working with MDHistoWorkspace
parents 682a3027 1242699a
......@@ -45,8 +45,8 @@ void LoadIsawUB::exec() {
Workspace_sptr ws1 = getProperty("InputWorkspace");
ExperimentInfo_sptr ws;
IMDEventWorkspace_sptr MDWS =
boost::dynamic_pointer_cast<IMDEventWorkspace>(ws1);
MultipleExperimentInfos_sptr MDWS =
boost::dynamic_pointer_cast<MultipleExperimentInfos>(ws1);
if (MDWS != nullptr) {
ws = MDWS->getExperimentInfo(0);
} else {
......@@ -54,7 +54,7 @@ void LoadIsawUB::exec() {
}
if (!ws)
throw std::invalid_argument("Must specify either a MatrixWorkspace or a "
"PeaksWorkspace or a MDEventWorkspace.");
"PeaksWorkspace or a MDWorkspace.");
std::string Filename = getProperty("Filename");
......
......@@ -81,8 +81,8 @@ void SaveIsawUB::exec() {
try {
Workspace_sptr ws1 = getProperty("InputWorkspace");
ExperimentInfo_sptr ws;
IMDEventWorkspace_sptr MDWS =
boost::dynamic_pointer_cast<IMDEventWorkspace>(ws1);
MultipleExperimentInfos_sptr MDWS =
boost::dynamic_pointer_cast<MultipleExperimentInfos>(ws1);
if (MDWS != nullptr) {
ws = MDWS->getExperimentInfo(0);
} else {
......@@ -91,7 +91,7 @@ void SaveIsawUB::exec() {
if (!ws)
throw std::invalid_argument("Must specify either a MatrixWorkspace or a "
"PeaksWorkspace or a MDEventWorkspace.");
"PeaksWorkspace or a MDWorkspace.");
if (!ws->sample().hasOrientedLattice())
throw std::invalid_argument(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment