IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33462 for trunk


Ignore:
Timestamp:
Mar 9, 2012, 2:05:41 PM (14 years ago)
Author:
bills
Message:

in psphotStack fail if an input has no sources. This is likely the
sign of a corrupt cmf file

File:
1 edited

Legend:

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

    r32348 r33462  
    3232        pmDetections *detections = psMetadataLookupPtr(NULL, readout->analysis, "PSPHOT.DETECTIONS"); // Sources
    3333        if (!detections || !detections->allSources) {
    34             psWarning("No detections found for image %d --- rejecting.", index);
    35             options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[index] = 0x01;
    36             return true;  // XXX not an error: we continue processing other images
     34            // An input must have sources. If we got here without any the input file was likely corrupt
     35            psError(PSPHOT_ERR_IO, true, "Input %d has no sources.\n\tCheck all instances of: %s", index, inputSrc->origname);
     36            return false;
    3737        }
    3838        psAssert (detections->allSources, "missing sources?");
Note: See TracChangeset for help on using the changeset viewer.