IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17132


Ignore:
Timestamp:
Mar 25, 2008, 9:23:12 AM (18 years ago)
Author:
Paul Price
Message:

Adding check on return value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_080320/psModules/src/detrend/pmShutterCorrection.c

    r16600 r17132  
    955955            pmShutterCorrection *corr = pmShutterCorrectionLinFit(data->exptimes, counts, errors, mask,
    956956                                                                  reference, nIter, rej, maskVal);
     957            if (!corr) {
     958                // Nothing we can do about it
     959                psErrorClear();
     960                shutterImage->data.F32[yOut][xOut] = NAN;
     961                patternImage->data.F32[yOut][xOut] = NAN;
     962                continue;
     963            }
    957964            shutterImage->data.F32[yOut][xOut] = corr->offset;
    958965            patternImage->data.F32[yOut][xOut] = corr->scale;
Note: See TracChangeset for help on using the changeset viewer.