Skip to content

Commit

Permalink
Fix bug for 1:1 detector mapping.
Browse files Browse the repository at this point in the history
ExperimentInfo throws if no mappings are defined.
Refs #10470
  • Loading branch information
martyngigg committed Nov 24, 2014
1 parent 972c75d commit 1bebfc7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Code/Mantid/Framework/MDAlgorithms/src/MDNormSXD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,15 @@ namespace Mantid

for(auto iter = detIDs.begin(); iter != detIDs.end(); ++iter)
{
const auto & members = exptInfo.getGroupMembers(*iter);
singleIDs.push_back(members.front());
detid_t frontID = *iter;
try
{
const auto & members = exptInfo.getGroupMembers(*iter);
frontID = members.front();
}
catch (std::runtime_error &)
{}
singleIDs.push_back(frontID);
}

return singleIDs;
Expand Down

0 comments on commit 1bebfc7

Please sign in to comment.