Skip to content

Commit

Permalink
Move IDA code to use new python API.
Browse files Browse the repository at this point in the history
Includes IndirectDataAnalysis.cpp & CalcCorr helper.
Refs #7468
  • Loading branch information
martyngigg committed Jul 18, 2013
1 parent ae5946b commit 6d88534
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Code/Mantid/MantidQt/CustomInterfaces/src/CalcCorr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ namespace IDA
"file = r'" + input + "'\n"
"( dir, filename ) = op.split(file)\n"
"( name, ext ) = op.splitext(filename)\n"
"LoadNexusProcessed(file, name)\n"
"LoadNexusProcessed(Filename=file, OutputWorkspace=name)\n"
"inputws = name\n";
}
else
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/MantidQt/CustomInterfaces/src/IDATab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ namespace IDA
{
using Mantid::Kernel::Exception::NotFoundError;

QString pyInput = "LoadNexus(r'" + filename + "', '" + wsname + "')";
QString pyInput = "LoadNexus(Filename=r'" + filename + "', OutputWorkspace='" + wsname + "')";
runPythonCode(pyInput);

MatrixWorkspace_const_sptr ws;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ namespace IDA
*/
void IndirectDataAnalysis::initLocalPython()
{
QString pyInput = "from mantidsimple import *";
QString pyInput = "from mantid.simpleapi import *";
QString pyOutput = runPythonCode(pyInput).trimmed();
loadSettings();
}
Expand Down

0 comments on commit 6d88534

Please sign in to comment.