Skip to content

Commit

Permalink
Merge pull request #819 from mantidproject/11869_detcal_nonexisting_bank
Browse files Browse the repository at this point in the history
LoadIsawDetCal bug fixed
  • Loading branch information
FedeMPouzols committed Jun 2, 2015
2 parents 95d63fd + 76055b3 commit a13ea1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Code/Mantid/Framework/DataHandling/src/LoadIsawDetCal.cpp
Expand Up @@ -199,9 +199,11 @@ void LoadIsawDetCal::exec() {
std::ostringstream Detbank;
Detbank << "bank" << id;
// Loop through detectors to match names with number from DetCal file
idnum = -1;
for (int i = 0; i < static_cast<int>(detList.size()); i++)
if (detList[i]->getName().compare(Detbank.str()) == 0)
idnum = i;
if (idnum < 0) continue;
det = detList[idnum];
if (det) {
IAlgorithm_sptr alg1 = createChildAlgorithm("ResizeRectangularDetector");
Expand Down

0 comments on commit a13ea1d

Please sign in to comment.