Index: /branches/eam_branches/ipp-20100621/ippconfig/recipes/psphot.config
===================================================================
--- /branches/eam_branches/ipp-20100621/ippconfig/recipes/psphot.config	(revision 28657)
+++ /branches/eam_branches/ipp-20100621/ippconfig/recipes/psphot.config	(revision 28658)
@@ -90,5 +90,12 @@
 
 PSF_FIT_ITER                        S32   50              # Maximum number of fitting iterations for PSF
-PSF_FIT_TOL                         F32   0.01            # Fit tolerance for PSF
+PSF_FIT_MIN_TOL                     F32   0.01            # Fit tolerance for PSF
+PSF_FIT_MAX_TOL                     F32   2.00            # Fit tolerance for PSF
+
+# the following is used to require a minimum quality of fit before
+# stopping based on the tolerance.  be careful of using this in
+# conjunction with non-poisson errors (POISSON.ERRORS.LMM) or with
+# pooly determined errors
+PSF_FIT_MAX_CHISQ                   F32  20.00            # require chisq / DOF to reach this level before giving up
 
 # PSF model parameters : choose the PSF model
@@ -139,5 +146,5 @@
  
 # this model is used for approximate subtraction in the main object analysis step
-EXT_MODEL                           STR   PS_MODEL_QGAUSS
+EXT_MODEL                           STR   PS_MODEL_SERSIC
 EXT_FIT_NSIGMA                      F32   1               # significance for pixel included in fit
 EXT_FIT_PADDING                     F32   5               # extra annulus to use for fit 
@@ -146,5 +153,12 @@
 
 EXT_FIT_ITER                        S32   20              # Maximum number of fitting iterations for EXT
-EXT_FIT_TOL                         F32   0.01            # Fit tolerance for EXT
+EXT_FIT_MIN_TOL                     F32   0.01            # Fit tolerance for EXT
+EXT_FIT_MAX_TOL                     F32   2.00            # Fit tolerance for EXT
+
+# the following is used to require a minimum quality of fit before
+# stopping based on the tolerance.  be careful of using this in
+# conjunction with non-poisson errors (POISSON.ERRORS.LMM) or with
+# pooly determined errors
+EXT_FIT_MAX_CHISQ                   F32  20.00            # require chisq / DOF to reach this level before giving up
 
 # extended source aperture-like measurements
