Skip to content
Snippets Groups Projects
Commit c6030d9e authored by Elliot Oram's avatar Elliot Oram
Browse files

Chnaged form of outputname to be more descriptive

Refs #13110
parent f4144d31
No related branches found
No related tags found
No related merge requests found
...@@ -87,12 +87,16 @@ void ContainerSubtraction::run() { ...@@ -87,12 +87,16 @@ void ContainerSubtraction::run() {
} }
// Generate output workspace name // Generate output workspace name
int nameCutIndex = sampleWsName.lastIndexOf("_"); QString containerWsName = m_uiForm.dsContainer->getCurrentDataName();
if (nameCutIndex == -1) int sampleNameCutIndex = sampleWsName.lastIndexOf("_");
nameCutIndex = sampleWsName.length(); if (sampleNameCutIndex == -1)
sampleNameCutIndex = sampleWsName.length();
int containerNameCutIndex = containerWsName.indexOf("_");
if(containerNameCutIndex == -1)
containerNameCutIndex = containerWsName.length();
const QString outputWsName = const QString outputWsName =
sampleWsName.left(nameCutIndex)+"_Corrected"; sampleWsName.left(sampleNameCutIndex)+"_Subtract_"+containerWsName.left(containerNameCutIndex);
applyCorrAlg->setProperty("OutputWorkspace", outputWsName.toStdString()); applyCorrAlg->setProperty("OutputWorkspace", outputWsName.toStdString());
......
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