IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 9, 2010, 10:56:32 AM (16 years ago)
Author:
eugene
Message:

changed pmSourceFitModel and related APIs to pass a structure of fit options; this lets us change the options between soruces within the multithreaded context; also re-organized the include orders to avoid conflicts

File:
1 edited

Legend:

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

    r28013 r28643  
    7474
    7575    // structure to store user options defining the psf
    76     pmPSFOptions *options = pmPSFOptionsAlloc ();
     76    pmPSFOptions *options = pmPSFOptionsAlloc();
    7777
    7878    // load user options from the recipe. no need to check existence -- they are
     
    143143        return false;
    144144    }
    145     pmSourceFitModelInit(fitIter, fitTol, PS_SQR(SKY_SIG), options->poissonErrorsPhotLMM);
    146 
     145
     146    // options which modify the behavior of the model fitting
     147    options->fitOptions                = pmSourceFitOptionsAlloc();
     148    options->fitOptions->nIter         = fitIter;
     149    options->fitOptions->tol           = fitTol;
     150    options->fitOptions->poissonErrors = options->poissonErrorsPhotLMM;
     151    options->fitOptions->weight        = PS_SQR(SKY_SIG);
     152    options->fitOptions->mode          = PM_SOURCE_FIT_PSF;
     153   
    147154    psArray *stars = psArrayAllocEmpty (sources->n);
    148155
Note: See TracChangeset for help on using the changeset viewer.