Skip to content

Commit

Permalink
Fix second compile error
Browse files Browse the repository at this point in the history
Refs #10092
  • Loading branch information
DanNixon committed Aug 12, 2014
1 parent ac90897 commit 7617e99
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
13 changes: 10 additions & 3 deletions Code/Mantid/MantidQt/API/test/BatchAlgorithmRunnerTest.h
Expand Up @@ -25,7 +25,8 @@ class BatchAlgorithmRunnerTest : public CxxTest::TestSuite

void test_basicBatch()
{
MantidQt::API::BatchAlgorithmRunner runner(NULL);
using MantidQt::API::BatchAlgorithmRunner;
BatchAlgorithmRunner runner(NULL);

// Create some algorithms
// Each algorithm depends on the output workspace of the previous
Expand All @@ -51,8 +52,14 @@ class BatchAlgorithmRunnerTest : public CxxTest::TestSuite
// Add them to the queue
// Define the input (and inout, if used) WS properties here
runner.addAlgorithm(createWsAlg);
runner.addAlgorithm(cropWsAlg, {{"InputWorkspace", "ws1"}});
runner.addAlgorithm(scaleWsAlg, {{"InputWorkspace", "ws2"}});

BatchAlgorithmRunner::AlgorithmRuntimeProps cropRuntimeProps;
cropRuntimeProps["InputWorkspace"] = "ws1";
runner.addAlgorithm(cropWsAlg, cropRuntimeProps);

BatchAlgorithmRunner::AlgorithmRuntimeProps scaleRuntimeProps;
scaleRuntimeProps["InputWorkspace"] = "ws2";
runner.addAlgorithm(scaleWsAlg, scaleRuntimeProps);

// Run queue
runner.startBatch();
Expand Down
Expand Up @@ -104,7 +104,10 @@ namespace CustomInterfaces
IAlgorithm_sptr saveAlg = AlgorithmManager::Instance().create("SaveNexus", -1);
saveAlg->initialize();
saveAlg->setProperty("Filename", outputWorkspaceName + ".nxs");
m_batchAlgoRunner->addAlgorithm(saveAlg, {{"InputWorkspace", outputWorkspaceName}});

MantidQt::API::BatchAlgorithmRunner::AlgorithmRuntimeProps saveProps;
saveProps["InputWorkspace"] = outputWorkspaceName;
m_batchAlgoRunner->addAlgorithm(saveAlg, saveProps);
}

//execute algorithm on seperate thread
Expand Down

0 comments on commit 7617e99

Please sign in to comment.