Changeset 31154 for trunk/psphot/src/psphotFitSourcesLinearStack.c
- Timestamp:
- Apr 4, 2011, 1:12:39 PM (15 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (2 props)
-
src/psphotFitSourcesLinearStack.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
- Property svn:ignore
-
old new 19 19 psphot-config 20 20 Doxyfile 21 a.out.dSYM
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
trunk/psphot/src/psphotFitSourcesLinearStack.c
r30624 r31154 163 163 for (int i = 0; i < fitSources->n; i++) { 164 164 pmSource *source = fitSources->data[i]; 165 if (source->mode & PM_SOURCE_MODE_NONLINEAR_FIT) continue;166 165 pmModel *model = pmSourceGetModel (NULL, source); 167 pmSourceChisq (model, source->pixels, source->maskObj, source->variance, maskVal, COVAR_FACTOR); 166 if (!(source->mode & PM_SOURCE_MODE_NONLINEAR_FIT)) { 167 model->nPar = 1; // LINEAR-only sources have 1 parameter; NONLINEAR sources have their original value 168 } 169 pmSourceChisq (model, source->pixels, source->maskObj, source->variance, maskVal); 168 170 } 169 171 psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "get chisqs: %f sec (%d elements)\n", psTimerMark ("psphot.linear"), sparse->Nelem);
Note:
See TracChangeset
for help on using the changeset viewer.
