Skip to content
Snippets Groups Projects
Commit e488b834 authored by Federico Montesino Pouzols's avatar Federico Montesino Pouzols
Browse files

Merge pull request #13921 from mantidproject/13915_Add_Subtration_run_number_to_corrections

Added container run number in Indirect corrections
parents b32c410f 9aa23e4d
No related branches found
No related tags found
No related merge requests found
......@@ -175,9 +175,18 @@ void ApplyPaalmanPings::run() {
correctionType = "cyl";
break;
}
const QString outputWsName =
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);
}
applyCorrAlg->setProperty("OutputWorkspace", outputWsName.toStdString());
// Add corrections algorithm to queue
......
......@@ -122,8 +122,17 @@ void CalculatePaalmanPings::run() {
break;
}
const QString outputWsName =
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());
// Add corrections algorithm to queue
......
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