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_PGAUSS.c

    r13064 r13424  
    293293    // the 2D PSF model fits polarization terms (E0,E1,E2)
    294294    // convert to shape terms (SXX,SYY,SXY)
    295     pmPSF_FitToModel (out, 0.1);
     295    if (!pmPSF_FitToModel (out, 0.1)) {
     296        psError(PM_ERR_PSF, false, "Failed to fit object at (r,c) = (%.1f,%.1f)",
     297                in[PM_PAR_YPOS], in[PM_PAR_XPOS]);
     298        return false;
     299    }
    296300
    297301    // apply the model limits here: this truncates excessive extrapolation
Note: See TracChangeset for help on using the changeset viewer.