Changeset 11263 for trunk/psphot/src/psphotReadoutCleanup.c
- Timestamp:
- Jan 24, 2007, 11:41:08 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadoutCleanup.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadoutCleanup.c
r11184 r11263 1 1 # include "psphot.h" 2 2 3 // psphotReadoutCleanup is called on exit from psphotReadout if the last raised 4 // error is not a DATA error, then there was a serious problem. only in this 5 // case, or if the fail on the stats measurement, do we return false 3 6 bool psphotReadoutCleanup (pmConfig *config, pmReadout *readout, psMetadata *recipe, pmPSF *psf, psArray *sources) { 7 8 psErrorCode err = psErrorCodeLast(); 9 if (err != PSPHOT_ERR_DATA) { 10 return false; 11 } 4 12 5 13 // use the psf-model to measure FWHM stats 6 14 if (psf) { 15 // don't call psphotPSFstats unless we have a valid pdf 16 // if it fails, there is probably a programming error 7 17 if (!psphotPSFstats (readout, recipe, psf)) { 8 psError(PS _ERR_IO, true, "Failed to measure PSF shape parameters");18 psError(PSPHOT_ERR_PROG, false, "Failed to measure PSF shape parameters"); 9 19 return false; 10 20 } 11 } else if (sources) { 21 } 22 if (!psf && sources) { 12 23 if (!psphotMomentsStats (readout, recipe, sources)) { 13 psError(PS _ERR_IO, true, "Failed to measure Moment shape parameters");24 psError(PSPHOT_ERR_PROG, false, "Failed to measure Moment shape parameters"); 14 25 return false; 15 26 }
Note:
See TracChangeset
for help on using the changeset viewer.
