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

Renamed output of apply/calculate paalmanpings tabs

Refs #13972
parent f856a2e4
No related branches found
No related tags found
No related merge requests found
...@@ -178,14 +178,10 @@ void ApplyPaalmanPings::run() { ...@@ -178,14 +178,10 @@ void ApplyPaalmanPings::run() {
} }
QString outputWsName = QString outputWsName =
sampleWsName.left(nameCutIndex) + +"_" + correctionType + "_Corrected"; sampleWsName.left(nameCutIndex) + +"_" + correctionType + "_Corrected";
if(m_uiForm.ckUseCan->isChecked()){
if (useCan) { QString canWsName = m_uiForm.dsContainer->getCurrentDataName();
auto containerWsName = m_uiForm.dsContainer->getCurrentDataName(); auto canCut = canWsName.indexOf("_");
int cutIndex = containerWsName.indexOf("_"); outputWsName += "_" + canWsName.left(canCut);
if (cutIndex == -1) {
cutIndex = containerWsName.length();
}
outputWsName += "_Subtract_" + containerWsName.left(cutIndex);
} }
applyCorrAlg->setProperty("OutputWorkspace", outputWsName.toStdString()); applyCorrAlg->setProperty("OutputWorkspace", outputWsName.toStdString());
......
...@@ -124,14 +124,6 @@ void CalculatePaalmanPings::run() { ...@@ -124,14 +124,6 @@ void CalculatePaalmanPings::run() {
QString outputWsName = QString outputWsName =
sampleWsName.left(nameCutIndex) + "_" + correctionType + "_abs"; sampleWsName.left(nameCutIndex) + "_" + correctionType + "_abs";
if (useCan) {
auto containerWsName = m_uiForm.dsContainer->getCurrentDataName();
int cutIndex = containerWsName.indexOf("_");
if (cutIndex == -1) {
cutIndex = containerWsName.length();
}
outputWsName += "_Subtract_" + containerWsName.left(cutIndex);
}
absCorAlgo->setProperty("OutputWorkspace", outputWsName.toStdString()); absCorAlgo->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