- Timestamp:
- Dec 6, 2012, 6:32:19 PM (14 years ago)
- Location:
- branches/czw_branch/20120906/psphot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20120906/psphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20120905/psphot (added) merged: 34408-34409,34415-34416,34428,34466,34565,34570,34575,34735,34747
- Property svn:mergeinfo changed
-
branches/czw_branch/20120906/psphot/src
- Property svn:mergeinfo changed
-
branches/czw_branch/20120906/psphot/src/psphotReplaceUnfit.c
r34136 r34772 35 35 // loop over the available readouts 36 36 for (int i = 0; i < num; i++) { 37 if (!psphotReplaceAllSourcesReadout (config, view, filerule, i, recipe, ignoreState)) { 38 psError (PSPHOT_ERR_CONFIG, false, "failed to replace all sources for %s entry %d", filerule, i); 39 return false; 40 } 41 } 42 return true; 43 } 44 37 // ignore return value. False means "sources not subtracted", not a failure condition 38 (void) psphotReplaceAllSourcesReadout (config, view, filerule, i, recipe, ignoreState); 39 } 40 return true; 41 } 42 43 // the return state indicates if any sources were actually replaced 45 44 bool psphotReplaceAllSourcesReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe, bool ignoreState) { 46 45 … … 58 57 if (psMetadataLookupBool (&status, readout->analysis, "PSPHOT.SKIP.INPUT")) { 59 58 psLogMsg ("psphot", PS_LOG_DETAIL, "skipping replace all sources for input file %d", index); 60 return true;59 return false; 61 60 } 62 61 … … 65 64 66 65 psArray *sources = detections->allSources; 67 // psAssert (sources, "missing sources?");68 if (!sources) return true;66 // if no work to do, should just return false 67 if (!sources) return false; 69 68 70 69 // 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.
