Changeset 26923 for trunk/ppStack/src
- Timestamp:
- Feb 11, 2010, 6:32:28 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackPhotometry.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackPhotometry.c
r26898 r26923 66 66 } 67 67 68 pmModelClassSetLimits(PM_MODEL_LIMITS_IGNORE); 68 69 if (!psphotReadoutKnownSources(config, photView, inSources)) { 69 70 // This is likely a data quality issue … … 91 92 pmReadout *photRO = pmFPAviewThisReadout(photView, photFile->fpa); // Readout with the sources 92 93 pmDetections *detections = psMetadataLookupPtr(NULL, photRO->analysis, "PSPHOT.DETECTIONS"); // detections 93 if (detections) {94 psAssert (detections->allSources, "missing sources?");95 psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", detections->allSources->n);96 } else {97 psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", 0);98 }94 if (detections) { 95 psAssert (detections->allSources, "missing sources?"); 96 psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", detections->allSources->n); 97 } else { 98 psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", 0); 99 } 99 100 psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_PHOT", 0, "Time to do photometry", psTimerMark("PPSTACK_PHOT")); 100 101 }
Note:
See TracChangeset
for help on using the changeset viewer.
