IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33092


Ignore:
Timestamp:
Jan 11, 2012, 10:55:13 AM (15 years ago)
Author:
bills
Message:

check return value from psphotGuessModels and exit if it fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20111222/psphot/src/psphotReadout.c

    r32996 r33092  
    133133    // Construct an initial model for each object, set the radius to fitRadius, set circular
    134134    // fit mask.  NOTE: only applied to sources without guess models
    135     psphotGuessModels (config, view, filerule); // pass 1
     135    // pass 1
     136    if (!psphotGuessModels (config, view, filerule)) {
     137        psLogMsg ("psphot", 3, "failure to Guess Model - pass 1");
     138        return psphotReadoutCleanup (config, view, filerule);
     139    }
    136140
    137141    // linear PSF fit to source peaks, subtract the models from the image (in PSF mask)
Note: See TracChangeset for help on using the changeset viewer.