Changeset 36375 for trunk/psModules/src/objects/pmSourceFitPCM.c
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
trunk/psModules
- Property svn:mergeinfo changed
-
trunk/psModules/src/objects/pmSourceFitPCM.c
r36085 r36375 51 51 # define TIMING 0 52 52 53 bool pmSourceChisqModelFlux (pmSource *source, pmModel *model, psImageMaskType maskVal); 54 53 55 bool pmSourceFitPCM (pmPCMdata *pcm, pmSource *source, pmSourceFitOptions *fitOptions, psImageMaskType maskVal, psImageMaskType markVal, int psfSize) { 54 56 … … 113 115 } else { 114 116 // xxx this is wrong because it does not convolve with the psf 115 pmSourceChisqUnsubtracted (source, pcm->modelConv, maskVal); 117 pmPCMMakeModel (source, pcm->modelConv, pcm->nsigma, maskVal, psfSize); 118 pmSourceChisqModelFlux (source, pcm->modelConv, maskVal); 116 119 } 117 120 if (TIMING) { t4 = psTimerMark ("pmSourceFitPCM"); } … … 119 122 // set the model success or failure status 120 123 pcm->modelConv->flags |= PM_MODEL_STATUS_FITTED; 121 if (!fitStatus) pcm->modelConv->flags |= PM_MODEL_STATUS_NONCONVERGE; 124 125 if (!fitStatus) { 126 if (isnan(myMin->value)) { 127 pcm->modelConv->flags |= PM_MODEL_STATUS_NAN_CHISQ; 128 } else { 129 pcm->modelConv->flags |= PM_MODEL_STATUS_NONCONVERGE; 130 } 131 } 122 132 123 133 if (myMin->chisqConvergence) {
Note:
See TracChangeset
for help on using the changeset viewer.
