IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36358


Ignore:
Timestamp:
Dec 6, 2013, 2:52:41 PM (13 years ago)
Author:
bills
Message:

don't do extended source fits or petrosians for sources that do not have a psf model.
Prevents assertion failures in model fits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psphot/src/psphotChooseAnalysisOptions.c

    r36343 r36358  
    204204        // skip saturated stars modeled with a radial profile
    205205        if (source->mode2 & PM_SOURCE_MODE2_SATSTAR_PROFILE) continue;
     206
     207        // skip sources without a psf model
     208        if (source->modelPSF == NULL) continue;
    206209
    207210        // Do the fits if the recipe requests we do extended source fits to everything
     
    496499            // skip saturated stars modeled with a radial profile
    497500            if (source->mode2 & PM_SOURCE_MODE2_SATSTAR_PROFILE) continue;
     501
     502            // skip sources without a psf model
     503            if (source->modelPSF == NULL) continue;
    498504               
    499505            // Do the fits if the recipe requests we do extended source fits to everything
Note: See TracChangeset for help on using the changeset viewer.