IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17632


Ignore:
Timestamp:
May 12, 2008, 8:52:31 AM (18 years ago)
Author:
Paul Price
Message:

Allow readouts to be NULL --- they are if they couldn't be matched.

File:
1 edited

Legend:

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

    r17006 r17632  
    4848    for (int i = 0; i < num; i++) {
    4949        pmReadout *ro = readouts->data[i];
    50         assert(ro);
     50        if (!ro) {
     51            // Bad image
     52            continue;
     53        }
    5154        pmFPA *fpa = ro->parent->parent->parent; // Parent FPA
    5255
     
    8689    for (int i = 0; i < stack->n; i++) {
    8790        pmStackData *data = stack->data[i]; // Data for this image
     91        if (!data) {
     92            continue;
     93        }
    8894        psImage *inspected = psPixelsToMask(NULL, data->inspect,
    8995                                            psRegionSet(0, outRO->image->numCols - 1,
     
    104110        pmStackData *data = stack->data[i]; // Data for this image
    105111        pmReadout *readout = data->readout; // Readout of interest
     112        if (!data || !readout) {
     113            continue;
     114        }
    106115        psMetadataAddPtr(readout->analysis, PS_LIST_TAIL, PPSTACK_INSPECT_PIXELS,
    107116                         PS_DATA_PIXELS | PS_META_DUPLICATE_OK, "Pixels to inspect from initial combination",
Note: See TracChangeset for help on using the changeset viewer.