IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2007, 4:04:30 AM (19 years ago)
Author:
rhl
Message:

Check pmPSF_FitToModel's return code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/models/pmModel_GAUSS.c

    r13064 r13424  
    273273    // convert to shape terms (SXX,SYY,SXY)
    274274    // XXX user-defined value for limit?
    275     pmPSF_FitToModel (out, 0.1);
     275    if (!pmPSF_FitToModel (out, 0.1)) {
     276        psError(PM_ERR_PSF, false, "Failed to fit object at (r,c) = (%.1f,%.1f)",
     277                in[PM_PAR_YPOS], in[PM_PAR_XPOS]);
     278        return false;
     279    }
    276280
    277281    // apply the model limits here: this truncates excessive extrapolation
Note: See TracChangeset for help on using the changeset viewer.