Changeset 34492 for trunk/psphot/src/psphotReplaceUnfit.c
- Timestamp:
- Oct 2, 2012, 11:18:35 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReplaceUnfit.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReplaceUnfit.c
r34136 r34492 43 43 } 44 44 45 // the return state indicates if any sources were actually replaced 45 46 bool psphotReplaceAllSourcesReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe, bool ignoreState) { 46 47 … … 58 59 if (psMetadataLookupBool (&status, readout->analysis, "PSPHOT.SKIP.INPUT")) { 59 60 psLogMsg ("psphot", PS_LOG_DETAIL, "skipping replace all sources for input file %d", index); 60 return true;61 return false; 61 62 } 62 63 … … 65 66 66 67 psArray *sources = detections->allSources; 67 // psAssert (sources, "missing sources?");68 if (!sources) return true;68 // if no work to do, should just return false 69 if (!sources) return false; 69 70 70 71 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
Note:
See TracChangeset
for help on using the changeset viewer.
