IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 43057


Ignore:
Timestamp:
Jul 3, 2026, 2:57:00 PM (2 weeks ago)
Author:
eugene
Message:

return NAN is shutter correction cannot be performed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/psModules/src/detrend/pmShutterCorrection.c

    r34085 r43057  
    10091009        // use the sorted exptime, counts, and errors for the measurements
    10101010        pmShutterCorrection *guess = pmShutterCorrectionGuess(newtimes, newcounts); // Guess at correction
     1011        if (!guess) {
     1012          psError(PS_ERR_UNKNOWN, true, "Unable to measure correction.\n");
     1013          return NAN;
     1014        }
    10111015        psTrace("psModules.detrend", 5, "Shutter correction guess: scale: %f, offset: %f, offref: %f\n", guess->scale, guess->offset, guess->offref);
    10121016
     
    10341038    if (numGood == 0) {
    10351039        psError(PS_ERR_UNKNOWN, true, "Unable to measure mean reference offset.\n");
    1036         return false;
     1040        return NAN;
    10371041    }
    10381042    meanRef /= (float)numGood;
Note: See TracChangeset for help on using the changeset viewer.