IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 24, 2015, 9:23:29 AM (11 years ago)
Author:
bills
Message:

Do not assert readout->analysis has PCM_FIT_OPTIONS unless EXTENDED_SOURCE_FITS is true

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotReplaceUnfit.c

    r38515 r38535  
    316316    }
    317317
    318     pmSourceFitOptions *fitOptions = psMetadataLookupPtr (&status, readout->analysis, "PCM_FIT_OPTIONS");
    319     psAssert (fitOptions, "missing pcm fit options");
     318    pmSourceFitOptions *fitOptions = NULL;
     319    if (psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_FITS")) {
     320        fitOptions = psMetadataLookupPtr (&status, readout->analysis, "PCM_FIT_OPTIONS");
     321        psAssert (fitOptions, "missing pcm fit options");
     322    }
    320323
    321324    // XXX the sources have already been copied (merge into here?)
     
    397400           pmPCMdata *pcm = pmPCMinit (source, fitOptions, model, maskVal, psfSize);
    398401            if (pcm) {
    399                 // pmPCMMakeModel (source, model, pcm->nsigma, maskVal, psfSize);
    400402                pmPCMCacheModel (source, maskVal, psfSize, pcm->nsigma);
    401403                psFree(pcm);
Note: See TracChangeset for help on using the changeset viewer.