Skip to content

Commit

Permalink
Ungroup result workspaces on slice
Browse files Browse the repository at this point in the history
Refs #10638
  • Loading branch information
DanNixon committed Nov 26, 2014
1 parent 35c2df2 commit a74869f
Showing 1 changed file with 7 additions and 6 deletions.
Expand Up @@ -172,12 +172,6 @@ namespace CustomInterfaces
sliceAlg->setProperty("BackgroundRange", backgroundRange);
}

// Set workspace name for Python export
QString firstFilename = m_uiForm.slice_inputFile->getFirstFilename();
QFileInfo firstFileInfo(firstFilename);
QString resultWorkspace = firstFileInfo.baseName() + suffix;
m_pythonExportWsName = resultWorkspace.toStdString();

runAlgorithm(sliceAlg);
}

Expand Down Expand Up @@ -421,12 +415,19 @@ namespace CustomInterfaces
return;
}

// Set workspace for Python export as the first result workspace
m_pythonExportWsName = sliceWs->getName();

// Plot result spectrum
plotMiniPlot(sliceWs, 0, "SlicePreviewPlot", "SlicePreviewCurve");

// Set X range to data range
setXAxisToCurve("SlicePreviewPlot", "SlicePreviewCurve");
m_plots["SlicePreviewPlot"]->replot();

// Ungroup the output workspace
sliceOutputGroup->removeAll();
AnalysisDataService::Instance().remove("IndirectDiagnostics_Workspaces");
}

/**
Expand Down

0 comments on commit a74869f

Please sign in to comment.