IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17385


Ignore:
Timestamp:
Apr 7, 2008, 5:04:08 PM (18 years ago)
Author:
eugene
Message:

catch errors from psphotKernelFromPSF and pmSourceModelGuess

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080324/psphot/src/psphotPSFConvModel.c

    r17380 r17385  
    1616    // convert the cached cached psf model for this source to a psKernel
    1717    psKernel *psf = psphotKernelFromPSF (source, psfSize);
     18    if (!psf) return NULL;
    1819
    1920# if (USE_DELTA_PSF)
     
    2829    // use the source moments, etc to guess basic model parameters
    2930    pmModel *modelConv = pmSourceModelGuess (source, modelType);
    30     PS_ASSERT (modelConv, NULL);
     31    if (!modelConv) {
     32        psFree (psf);
     33        return NULL;
     34    }
    3135
    3236    // XXX test : modify the Io, SXX, SYY terms based on the psf SXX, SYY terms:
Note: See TracChangeset for help on using the changeset viewer.