IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36663


Ignore:
Timestamp:
Apr 15, 2014, 10:27:50 AM (12 years ago)
Author:
bills
Message:

don't fail if we fail to choose PSF

File:
1 edited

Legend:

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

    r36633 r36663  
    7878    psphotMergeSources (config, view, filerule);
    7979
    80 
    8180    // generate a psf model for any readouts which need one
    8281    // psphotFullForcePSF (config, view, filerule);
     
    8483    // sources; we should mark with a flag bit the ones we actually want to use as PSF
    8584    // stars (this means we need to supply this info in the load).
    86     psphotChoosePSF (config, view, filerule, false);
     85    if (!psphotChoosePSF (config, view, filerule, false)) {
     86        // PSPHOT_ERR_DATA causes this program to exit gracefully
     87        psError (PSPHOT_ERR_DATA, false, "failed to construct psf model");
     88        return  psphotReadoutCleanup (config, view, filerule);
     89    }
    8790
    8891    // Construct an initial model for each object, set the radius to fitRadius, set circular
Note: See TracChangeset for help on using the changeset viewer.