Skip to content
Snippets Groups Projects
Commit 4e97c344 authored by Anton Piccardo-Selg's avatar Anton Piccardo-Selg Committed by Peterson, Peter
Browse files

Refs #16387 Save box structure to file, not only events

parent 3f78a3b7
No related branches found
No related tags found
No related merge requests found
......@@ -246,6 +246,15 @@ void ConvertToMD::exec() {
// Set the normalization of the event workspace
m_Convertor->setDisplayNormalization(spws, m_InWS2D);
if (fileBackEnd) {
auto savemd = this->createChildAlgorithm("SaveMD");
savemd->setProperty("InputWorkspace", spws);
savemd->setPropertyValue("Filename", out_filename);
savemd->setProperty("UpdateFileBackEnd", true);
savemd->setProperty("MakeFileBacked", false);
savemd->executeAsChildAlg();
}
// JOB COMPLETED:
setProperty("OutputWorkspace",
boost::dynamic_pointer_cast<IMDEventWorkspace>(spws));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment