Skip to content

Commit

Permalink
Re #8837 Clear grouping vector for each period
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelalvarezbanos committed Mar 6, 2015
1 parent 1b40db6 commit c2bbb93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Code/Mantid/Framework/DataHandling/src/LoadMuonNexus1.cpp
Expand Up @@ -463,6 +463,7 @@ Workspace_sptr LoadMuonNexus1::loadDetectorGrouping(NXRoot &root) {
for (int i=0; i<m_numberOfPeriods; i++) {

// Get the grouping
grouping.clear();
for (auto it=specToLoad.begin(); it!=specToLoad.end(); ++it) {
int index = *it - 1 + i * static_cast<int>(m_numberOfSpectra);
grouping.push_back(groupingData[index]);
Expand Down

0 comments on commit c2bbb93

Please sign in to comment.