Skip to content

Commit

Permalink
Re #6931 Load only new runs
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelalvarezbanos committed Apr 22, 2015
1 parent 04caa6f commit 7d0013a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Code/Mantid/Framework/Algorithms/src/PlotAsymmetryByLogValue.cpp
Expand Up @@ -199,11 +199,15 @@ void PlotAsymmetryByLogValue::exec() {
// Loop through runs
for (size_t i = is; i <= ie; i++) {

// Load run, apply dead time corrections and detector grouping
Workspace_sptr loadedWs = doLoad(i);
// Check if run i was already loaded
if ( !g_redX.count(i) ) {

// Analyse loadedWs
doAnalysis (loadedWs, i-is);
// Load run, apply dead time corrections and detector grouping
Workspace_sptr loadedWs = doLoad(i);

// Analyse loadedWs
doAnalysis (loadedWs, i);
}

progress.report();
}
Expand All @@ -222,6 +226,7 @@ void PlotAsymmetryByLogValue::exec() {
populateOutputWorkspace(outWS,nplots);
// Assign the result to the output workspace property
setProperty("OutputWorkspace", outWS);

}

/** Loads one run and applies dead-time corrections and detector grouping if required
Expand Down

0 comments on commit 7d0013a

Please sign in to comment.