IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9517


Ignore:
Timestamp:
Oct 12, 2006, 11:46:03 AM (20 years ago)
Author:
eugene
Message:

added various asserts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotChoosePSF.c

    r9317 r9517  
    126126    psEllipseAxes axes;
    127127
     128    PS_ASSERT_PTR_NON_NULL(readout, false);
     129    PS_ASSERT_PTR_NON_NULL(recipe, false);
     130    PS_ASSERT_PTR_NON_NULL(psf, false);
     131
    128132    psImage *image = readout->image;
     133    PS_ASSERT_PTR_NON_NULL(image, false);
    129134
    130135    pmModel *modelEXT = pmModelAlloc (psf->type);
     136    PS_ASSERT_PTR_NON_NULL(modelEXT, false);
    131137
    132138    // make a model with unit central intensity at the image center
     
    138144    // construct a PSF model at this coordinate
    139145    pmModel *modelPSF = pmModelFromPSF (modelEXT, psf);
     146    PS_ASSERT_PTR_NON_NULL(modelPSF, false);
    140147
    141148    // get the correct model-radius function
     
    175182    psEllipseAxes axes;
    176183
     184    PS_ASSERT_PTR_NON_NULL(readout, false);
     185    PS_ASSERT_PTR_NON_NULL(recipe, false);
     186    PS_ASSERT_PTR_NON_NULL(sources, false);
     187
    177188    for (int i = 0; i < sources->n; i++) {
    178189        pmSource *source = sources->data[i];
     190        if (!source) continue;
    179191        if (!(source->mode & PM_SOURCE_MODE_PSFSTAR)) continue;
    180192
Note: See TracChangeset for help on using the changeset viewer.