Changeset 29342
- Timestamp:
- Oct 6, 2010, 11:49:15 AM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100823
- Files:
-
- 2 edited
-
psLib/src/math/psMinimizeLMM.c (modified) (3 diffs)
-
psphot/src/psphotSourceFits.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823/psLib/src/math/psMinimizeLMM.c
r28998 r29342 325 325 chisq += PS_SQR(delta) * dy->data.F32[i]; 326 326 327 if (isnan(dy->data.F32[i])) return NAN;328 if (isnan(delta)) return NAN;329 if (isnan(chisq)) return NAN;327 if (isnan(dy->data.F32[i])) goto escape; 328 if (isnan(delta)) goto escape; 329 if (isnan(chisq)) goto escape; 330 330 331 331 // we track alpha,beta and params,deriv separately … … 354 354 psFree(deriv); 355 355 return(chisq); 356 357 escape: 358 psFree(deriv); 359 return NAN; 356 360 } 357 361 … … 448 452 if (isnan(min->value)) { 449 453 min->iter = min->maxIter; 454 psFree(alpha); 455 psFree(Alpha); 456 psFree(beta); 457 psFree(Beta); 458 psFree(Params); 450 459 return(false); 451 460 } -
branches/eam_branches/ipp-20100823/psphot/src/psphotSourceFits.c
r29124 r29342 551 551 552 552 if (!psphotFitSersicIndexPCM (pcm, readout, source, fitOptions, maskVal, markVal, psfSize)) { 553 psFree (pcm); 553 554 model->flags |= PM_MODEL_STATUS_BADARGS; 554 555 return model;
Note:
See TracChangeset
for help on using the changeset viewer.
