- Timestamp:
- Apr 21, 2014, 5:42:34 AM (12 years ago)
- Location:
- branches/eam_branches/ps2-tc3-20130727
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psModules (modified) (1 prop)
-
psModules/src/objects (modified) (1 prop)
-
psModules/src/objects/pmSourceFitModel.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ps2-tc3-20130727
- Property svn:mergeinfo changed
-
branches/eam_branches/ps2-tc3-20130727/psModules
- Property svn:mergeinfo deleted
-
branches/eam_branches/ps2-tc3-20130727/psModules/src/objects
- Property svn:ignore
-
old new 12 12 pmSourceIO_CMF_PS1_V1.v1.c 13 13 pmSourceIO_CMF_PS1_V4.c 14 pmSourceIO_CMF_PS1_V5.c 14 15 pmSourceIO_CMF_PS1_SV1.c 15 16 pmSourceIO_CMF_PS1_SV2.c
-
- Property svn:ignore
-
branches/eam_branches/ps2-tc3-20130727/psModules/src/objects/pmSourceFitModel.c
r35768 r36680 40 40 #include "pmSourceDiffStats.h" 41 41 #include "pmSourceSatstar.h" 42 #include "pmSourceLensing.h" 42 43 #include "pmSource.h" 43 44 #include "pmSourcePhotometry.h" … … 59 60 opt->maxTol = 1.00; 60 61 opt->weight = 1.00; 62 opt->nsigma = 5.00; 61 63 opt->maxChisqDOF = NAN; 62 64 opt->poissonErrors = true; … … 66 68 opt->gainFactorMode = 0; 67 69 opt->chisqConvergence = true; 70 opt->isInteractive = false; 68 71 69 72 return opt; … … 247 250 myMin->gainFactorMode = options->gainFactorMode; 248 251 myMin->chisqConvergence = options->chisqConvergence; 252 myMin->isInteractive = options->isInteractive; 249 253 250 254 psImage *covar = psImageAlloc (params->n, params->n, PS_TYPE_F32); … … 279 283 // set the model success or failure status 280 284 model->flags |= PM_MODEL_STATUS_FITTED; 281 if (!fitStatus) model->flags |= PM_MODEL_STATUS_NONCONVERGE; 285 if (!fitStatus) { 286 if (isnan(myMin->value)) { 287 model->flags |= PM_MODEL_STATUS_NAN_CHISQ; 288 } else { 289 model->flags |= PM_MODEL_STATUS_NONCONVERGE; 290 } 291 } 282 292 283 293 if (myMin->chisqConvergence) {
Note:
See TracChangeset
for help on using the changeset viewer.
