Changeset 17954 for trunk/psphot/src/psphotChoosePSF.c
- Timestamp:
- Jun 5, 2008, 4:02:08 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotChoosePSF.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotChoosePSF.c
r17555 r17954 106 106 // generate a psf model using the first selection 107 107 if (stars->n == 0) { 108 // XXX optionally give up here109 108 psError(PSPHOT_ERR_PSF, false, "Failed to fit any models when choosing PSF"); 110 psErrorStackPrint (stderr, "Using guess PSF model"); 111 psErrorClear (); 109 bool mdok; // Status of MD lookup 110 if (!psMetadataLookupBool(&mdok, recipe, PSPHOT_RECIPE_PSF_FAKE_ALLOW)) { 111 return false; 112 } 113 psErrorStackPrint(stderr, "Using guess PSF model"); 114 psErrorClear(); 112 115 113 116 psFree(options); … … 175 178 psFree (stars); 176 179 177 // XXX optionally give up here 178 // test for PSPHOT.recipe & return false on failure. 179 180 psError(PSPHOT_ERR_PSF, false, "Failed to fit any models when choosing PSF"); 181 bool mdok; // Status of MD lookup 182 if (!psMetadataLookupBool(&mdok, recipe, PSPHOT_RECIPE_PSF_FAKE_ALLOW)) { 183 return false; 184 } 180 185 // generate a psf model using the first selection 181 psError(PSPHOT_ERR_PSF, false, "Failed to fit any models when choosing PSF");182 186 psErrorStackPrint (stderr, "Using guess PSF model"); 183 psErrorClear ();187 psErrorClear(); 184 188 185 189 psFree(options);
Note:
See TracChangeset
for help on using the changeset viewer.
