IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26786


Ignore:
Timestamp:
Feb 5, 2010, 1:33:12 PM (16 years ago)
Author:
eugene
Message:

raising an error if renormalization goes out of bounds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psModules/src/camera/pmFPAMaskWeight.c

    r26770 r26786  
    454454    // Check valid range of correction factor
    455455    if ((isfinite(minValid) && correction < minValid) || (isfinite(maxValid) && correction > maxValid)) {
    456         psWarning("Variance renormalisation is outside valid range: %f vs %f:%f --- no correction made",
    457                   correction, minValid, maxValid);
    458         return true;
     456        psError(PS_ERR_UNKNOWN, true, "Variance renormalisation is outside valid range: %f vs %f:%f --- no correction made", correction, minValid, maxValid);
     457        psMetadataAddF32(readout->analysis, PS_LIST_TAIL, PM_READOUT_ANALYSIS_RENORM, 0, "Renormalisation of variance", PS_SQR(correction));
     458        return false;
    459459    }
    460460
Note: See TracChangeset for help on using the changeset viewer.