IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13424


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

Check pmPSF_FitToModel's return code

Location:
trunk/psModules/src/objects/models
Files:
3 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
  • 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
  • trunk/psModules/src/objects/models/pmModel_QGAUSS.c

    r13064 r13424  
    350350    // the 2D PSF model fits polarization terms (E0,E1,E2)
    351351    // convert to shape terms (SXX,SYY,SXY)
    352     pmPSF_FitToModel (out, 0.1);
     352    if (!pmPSF_FitToModel (out, 0.1)) {
     353        psError(PM_ERR_PSF, false, "Failed to fit object at (r,c) = (%.1f,%.1f)",
     354                in[PM_PAR_YPOS], in[PM_PAR_XPOS]);
     355        return false;
     356    }
    353357
    354358    // apply the model limits here: this truncates excessive extrapolation
Note: See TracChangeset for help on using the changeset viewer.