IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30213


Ignore:
Timestamp:
Jan 7, 2011, 10:01:34 AM (15 years ago)
Author:
eugene
Message:

minor cleanups, error handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/psphot/src/psphotFindFootprints.c

    r27673 r30213  
    2121    psArray *footprints = pmFootprintsFind (significance, threshold, npixMin);
    2222
    23     pmFootprintsAssignPeaks(footprints, detections->peaks);
    24     // XXX handle the error conditions here
     23    if (pmFootprintsAssignPeaks(footprints, detections->peaks) != PS_ERR_NONE) {
     24        psAbort ("inconsistent peaks and footprints");
     25    }
    2526
    2627    // footprints now owns the peaks; after culling (below), we will rebuild the peaks array
Note: See TracChangeset for help on using the changeset viewer.