Skip to content

Commit

Permalink
*_red workspace is no longer removed.
Browse files Browse the repository at this point in the history
Refs #7730
  • Loading branch information
Samuel Jackson committed Aug 12, 2013
1 parent 77ffb44 commit 0e58a26
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions Code/Mantid/MantidQt/CustomInterfaces/src/Indirect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1684,14 +1684,12 @@ void Indirect::sOfQwClicked()
"filename = r'" +m_uiForm.sqw_inputFile->getFirstFilename() + "'\n"
"(dir, file) = os.path.split(filename)\n"
"(sqwInput, ext) = os.path.splitext(file)\n"
"LoadNexus(Filename=filename, OutputWorkspace=sqwInput)\n"
"cleanup = True\n";
"LoadNexus(Filename=filename, OutputWorkspace=sqwInput)\n";
}
else
{
pyInput +=
"sqwInput = '" + m_uiForm.sqw_cbWorkspace->currentText() + "'\n"
"cleanup = False\n";
"sqwInput = '" + m_uiForm.sqw_cbWorkspace->currentText() + "'\n";
}

// Create output name before rebinning
Expand All @@ -1701,10 +1699,7 @@ void Indirect::sOfQwClicked()
{
QString eRebinString = m_uiForm.sqw_leELow->text()+","+m_uiForm.sqw_leEWidth->text()+","+m_uiForm.sqw_leEHigh->text();
pyInput += "Rebin(InputWorkspace=sqwInput, OutputWorkspace=sqwInput+'_r', Params='" + eRebinString + "')\n"
"if cleanup:\n"
" DeleteWorkspace(sqwInput)\n"
"sqwInput += '_r'\n"
"cleanup = True\n";
"sqwInput += '_r'\n";
}
pyInput +=
"efixed = " + m_uiForm.leEfixed->text() + "\n"
Expand All @@ -1716,10 +1711,6 @@ void Indirect::sOfQwClicked()
pyInput += "SofQW2(InputWorkspace=sqwInput, OutputWorkspace=sqwOutput, QAxisBinning=rebin, EMode='Indirect', EFixed=efixed)\n";
else if(m_uiForm.sqw_cbRebinType->currentText() == "Parallelepiped/Fractional Area (SofQW3)")
pyInput += "SofQW3(InputWorkspace=sqwInput, OutputWorkspace=sqwOutput, QAxisBinning=rebin, EMode='Indirect', EFixed=efixed)\n";

pyInput +=
"if cleanup:\n"
" DeleteWorkspace(sqwInput)\n";

if ( m_uiForm.sqw_ckSave->isChecked() )
{
Expand Down

0 comments on commit 0e58a26

Please sign in to comment.