IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2013, 1:35:54 PM (13 years ago)
Author:
eugene
Message:

add a number of additional flag bits, esp for model fitting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psphot/src/psphotSourceFits.c

    r36325 r36327  
    582582    maskVal |= markVal;
    583583
    584     // allocate the model
     584    // allocate the model (this can only fail on a config error)
    585585    pmModel *model = pmModelAlloc(modelType);
    586     if (!model) {
    587         return NULL;
    588     }
     586    psAssert (model, "invalid extended model name");
    589587
    590588    float t1, t2, t3, t4, t5;
     
    622620        if (!psphotSersicModelGuessPCM (pcm, source, maskVal, psfSize)) {
    623621            psFree (pcm);
    624             model->flags |= PM_MODEL_STATUS_BADARGS;
     622            model->flags |= PM_MODEL_SERSIC_PCM_FAIL_GUESS;
    625623            return model;
    626624        }
     
    631629        if (!psphotFitSersicShapeAndIndexGridAuto (pcm, readout, source, &options, maskVal, markVal, psfSize)) {
    632630            psFree (pcm);
    633             model->flags |= PM_MODEL_STATUS_BADARGS;
     631            model->flags |= PM_MODEL_SERSIC_PCM_FAIL_GRID;
    634632            psError(PS_ERR_UNKNOWN, true, "Failed to find a index & shape");
    635633            psErrorClear (); // clear the polynomial error
     
    640638        if (!pmSourceModelGuessPCM (pcm, source, maskVal, markVal)) {
    641639            psFree (pcm);
    642             model->flags |= PM_MODEL_STATUS_BADARGS;
     640            model->flags |= PM_MODEL_PCM_FAIL_GUESS;
    643641            return model;
    644642        }
Note: See TracChangeset for help on using the changeset viewer.