IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38543


Ignore:
Timestamp:
Jun 25, 2015, 12:34:10 PM (11 years ago)
Author:
bills
Message:

Sometimes modelEXT is set even though there is not a valid psf model. Handle this case

File:
1 edited

Legend:

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

    r38535 r38543  
    10021002                sourceOut->tmpFlags &= ~PM_SOURCE_TMPF_SUBTRACTED;
    10031003            } else {
    1004                 if (sourceSrc->modelFlux) {
    1005                     bool isPSF = false;
    1006                     pmModel *model = pmSourceGetModel (&isPSF, sourceOut);
     1004                bool isPSF = false;
     1005                pmModel *model = pmSourceGetModel (&isPSF, sourceOut);
     1006                if (model && sourceSrc->modelFlux) {
    10071007                    if (model->isPCM) {
    10081008                        pmPCMdata *pcm = pmPCMinit (sourceOut, fitOptions, model, maskVal, psfSize);
Note: See TracChangeset for help on using the changeset viewer.