IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2008, 4:39:37 PM (18 years ago)
Author:
Paul Price
Message:

Record 0 sources if !sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubReadout.c

    r20611 r20615  
    570570            pmReadout *photRO = pmFPAviewThisReadout(view, photFile->fpa); // Readout with the sources
    571571            psArray *sources = psMetadataLookupPtr(NULL, photRO->analysis, "PSPHOT.SOURCES"); // Sources
    572             psMetadataAddS32(stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", sources->n);
     572            psMetadataAddS32(stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected",
     573                             sources ? sources->n : 0);
    573574            psMetadataAddF32(stats, PS_LIST_TAIL, "TIME_PHOT", 0, "Time to do photometry",
    574575                             psTimerClear("PPSUB_PHOT"));
Note: See TracChangeset for help on using the changeset viewer.