IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28978


Ignore:
Timestamp:
Aug 19, 2010, 6:21:37 PM (16 years ago)
Author:
eugene
Message:

careful with pmPCMupdate -- need to apply when fit options change

File:
1 edited

Legend:

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

    r28975 r28978  
    550550        psphotSetRadiusFootprint(&model->fitRadius, readout, source, markVal, 0.5);
    551551
    552         // update the pcm elements if we have changed the circumstance (eg, source->pixels)
    553         pmPCMupdate(pcm, source, fitOptions, model);
    554 
    555552        if (!psphotFitSersicIndexPCM (pcm, readout, source, fitOptions, maskVal, markVal, psfSize)) {
    556553            model->flags |= PM_MODEL_STATUS_BADARGS;
     
    562559        psphotSetRadiusFootprint(&model->fitRadius, readout, source, markVal, 1.0);
    563560    }
    564     // update the pcm elements if we have changed the circumstance (eg, source->pixels)
    565     pmPCMupdate(pcm, source, fitOptions, model);
    566561
    567562    if (modelType == pmModelClassGetType("PS_MODEL_SERSIC")) {
     
    570565        options.mode = PM_SOURCE_FIT_EXT;
    571566    }
     567    // update the pcm elements if we have changed the circumstance (options.mode or source->pixels)
     568    pmPCMupdate(pcm, source, &options, model);
    572569
    573570    // psTraceSetLevel("psLib.math.psMinimizeLMChi2", 5);
     
    657654    options.nIter = 4;
    658655
     656    // update the pcm elements if we have changed the circumstance (here, options.mode)
     657    pmPCMupdate(pcm, source, &options, model);
     658
    659659    int iMin = -1;
    660660    float xMin = NAN;
Note: See TracChangeset for help on using the changeset viewer.