IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 25, 2010, 6:17:30 PM (16 years ago)
Author:
Paul Price
Message:

Allow an input to have no sources (e.g., they've all been magicked away).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackPrepare.c

    r27427 r27446  
    183183            pmReadout *ro = pmFPAviewThisReadout(view, file->fpa); // Readout with sources
    184184            detections = psMetadataLookupPtr(NULL, ro->analysis, "PSPHOT.DETECTIONS"); // Sources
    185             if (!detections) {
    186                 psError(PPSTACK_ERR_PROG, false, "Unable to find source detections in readout.");
    187                 return NULL;
     185            if (!detections || !detections->allSources) {
     186                psWarning("No detections found for image %d --- rejecting.", i);
     187                options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i] = PPSTACK_MASK_CAL;
     188                continue;
    188189            }
    189190            psAssert (detections->allSources, "missing sources?");
Note: See TracChangeset for help on using the changeset viewer.