IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37607


Ignore:
Timestamp:
Nov 16, 2014, 2:08:41 PM (12 years ago)
Author:
bills
Message:

in psphotSetNFramesReadout do not asser that detections or detections->allSources are not null.
If the psphot BREAK_PT option is used they may not be.

File:
1 edited

Legend:

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

    r33691 r37607  
    4545
    4646    pmDetections *detections = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.DETECTIONS");
    47     psAssert (detections, "missing detections?");
    48     psAssert (detections->allSources, "missing sources?");
     47    if (!detections) {
     48        psLogMsg ("psphot", PS_LOG_INFO, "No detections image input %d", index);
     49        return true;
     50    }
    4951
    5052    psArray *sources = detections->allSources;
     53    if (!sources) {
     54        psLogMsg ("psphot", PS_LOG_INFO, "No sources for input %d", index);
     55        return true;
     56    }
    5157
    5258    int col0 = expnum->col0;
Note: See TracChangeset for help on using the changeset viewer.