Skip to content

Commit

Permalink
Fixing unit test. Refs #4208.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Dec 8, 2011
1 parent 94e0564 commit afd75aa
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,8 @@ int DiffractionFocussing2::validateSpectrumInGroup(size_t wi)
return -1;

const int group = udet2group[*it];
if (group <= 0)
return -1;
it++;
for (; it != dets.end(); ++it) // Loop other all other udets
{
Expand Down Expand Up @@ -587,7 +589,11 @@ void DiffractionFocussing2::determineRebinParameters()

// the spectrum is the real thing we want to work with
const ISpectrum * spec = m_matrixInputW->getSpectrum(wi);

if (spec == NULL)
{
groupAtWorkspaceIndex[wi] = -1;
continue;
}
if (checkForMask)
{
if (instrument->isDetectorMasked(spec->getDetectorIDs()))
Expand Down

0 comments on commit afd75aa

Please sign in to comment.