- Timestamp:
- Nov 30, 2013, 1:35:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130904/psphot/src/psphotSourceFits.c
r36325 r36327 582 582 maskVal |= markVal; 583 583 584 // allocate the model 584 // allocate the model (this can only fail on a config error) 585 585 pmModel *model = pmModelAlloc(modelType); 586 if (!model) { 587 return NULL; 588 } 586 psAssert (model, "invalid extended model name"); 589 587 590 588 float t1, t2, t3, t4, t5; … … 622 620 if (!psphotSersicModelGuessPCM (pcm, source, maskVal, psfSize)) { 623 621 psFree (pcm); 624 model->flags |= PM_MODEL_S TATUS_BADARGS;622 model->flags |= PM_MODEL_SERSIC_PCM_FAIL_GUESS; 625 623 return model; 626 624 } … … 631 629 if (!psphotFitSersicShapeAndIndexGridAuto (pcm, readout, source, &options, maskVal, markVal, psfSize)) { 632 630 psFree (pcm); 633 model->flags |= PM_MODEL_S TATUS_BADARGS;631 model->flags |= PM_MODEL_SERSIC_PCM_FAIL_GRID; 634 632 psError(PS_ERR_UNKNOWN, true, "Failed to find a index & shape"); 635 633 psErrorClear (); // clear the polynomial error … … 640 638 if (!pmSourceModelGuessPCM (pcm, source, maskVal, markVal)) { 641 639 psFree (pcm); 642 model->flags |= PM_MODEL_ STATUS_BADARGS;640 model->flags |= PM_MODEL_PCM_FAIL_GUESS; 643 641 return model; 644 642 }
Note:
See TracChangeset
for help on using the changeset viewer.
