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() {
}
QString outputWsName =
sampleWsName.left(nameCutIndex) + +"_" + correctionType + "_Corrected";
if (useCan) {
auto containerWsName = m_uiForm.dsContainer->getCurrentDataName();
int cutIndex = containerWsName.indexOf("_");
if (cutIndex == -1) {
cutIndex = containerWsName.length();
}
outputWsName += "_Subtract_" + containerWsName.left(cutIndex);
if(m_uiForm.ckUseCan->isChecked()){
QString canWsName = m_uiForm.dsContainer->getCurrentDataName();
auto canCut = canWsName.indexOf("_");
outputWsName += "_" + canWsName.left(canCut);
}
applyCorrAlg->setProperty("OutputWorkspace", outputWsName.toStdString());
......
......@@ -124,14 +124,6 @@ void CalculatePaalmanPings::run() {
QString outputWsName =
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());
......
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