IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27698


Ignore:
Timestamp:
Apr 15, 2010, 2:53:10 PM (16 years ago)
Author:
Paul Price
Message:

Use errors instead of assert.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubMakePSF.c

    r26982 r27698  
    8484    // Here, we assume the image is background-subtracted
    8585    pmDetections *detections = psMetadataLookupPtr(&mdok, minuend->analysis, "PSPHOT.DETECTIONS");
    86     psAssert(detections, "missing detections?");
     86    if (!detections || !detections->allSources) {
     87        psError(PPSUB_ERR_CONFIG, true, "No sources from which to determine PSF.");
     88        return false;
     89    }
    8790    psArray *sources = detections->allSources;
    88     psAssert(sources, "missing sources?");
    8991
    9092    // XXX filter sources?  limit the total number and return only brighter objects?
Note: See TracChangeset for help on using the changeset viewer.