IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33994 for trunk/psphot/src


Ignore:
Timestamp:
Jun 8, 2012, 11:33:13 AM (14 years ago)
Author:
eugene
Message:

forgot to add if (HAVE_MODEL_VAR) cases to psphot.h; slight cleanup of psphotFitSourcesLinear.c blocks so emacs is not confused (paired parentheses regardless of if-defs)

Location:
trunk/psphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphot.h

    r33963 r33994  
    9999
    100100bool            psphotFitSourcesLinear (pmConfig *config, const pmFPAview *view, const char *filerule, bool final);
     101
     102# if (HAVE_MODEL_VAR)
    101103bool            psphotFitSourcesLinearReadout (psMetadata *recipe, pmReadout *readout, psArray *sources, pmPSF *psf, bool final, pmSourceFitVarMode fitVarMode);
     104# else
     105bool            psphotFitSourcesLinearReadout (psMetadata *recipe, pmReadout *readout, psArray *sources, pmPSF *psf, bool final);
     106# endif
    102107
    103108bool            psphotSourceSize (pmConfig *config, const pmFPAview *view, const char *filerule, bool getPSFsize);
  • trunk/psphot/src/psphotFitSourcesLinear.c

    r33993 r33994  
    6969
    7070# if (HAVE_MODEL_VAR)
    71         if (!psphotFitSourcesLinearReadout (recipe, readout, sources, psf, final, fitVarModePass1)) {
    72 # else
    73         if (!psphotFitSourcesLinearReadout (recipe, readout, sources, psf, final)) {
    74 # endif
     71        if (!psphotFitSourcesLinearReadout (recipe, readout, sources, psf, final, fitVarModePass1))
     72# else
     73        if (!psphotFitSourcesLinearReadout (recipe, readout, sources, psf, final))
     74# endif
     75        {
    7576            psError (PSPHOT_ERR_CONFIG, false, "failed to fit sources (linear) for %s entry %d", filerule, i);
    7677            return false;
     
    144145
    145146# if (HAVE_MODEL_VAR)
    146 bool psphotFitSourcesLinearReadout (psMetadata *recipe, pmReadout *readout, psArray *sources, pmPSF *psf, bool final, pmSourceFitVarMode fitVarMode) {
    147 # else
    148 bool psphotFitSourcesLinearReadout (psMetadata *recipe, pmReadout *readout, psArray *sources, pmPSF *psf, bool final) {
    149 # endif
    150 
     147bool psphotFitSourcesLinearReadout (psMetadata *recipe, pmReadout *readout, psArray *sources, pmPSF *psf, bool final, pmSourceFitVarMode fitVarMode)
     148# else
     149bool psphotFitSourcesLinearReadout (psMetadata *recipe, pmReadout *readout, psArray *sources, pmPSF *psf, bool final)
     150# endif
     151{
    151152    bool status;
    152153    float x;
Note: See TracChangeset for help on using the changeset viewer.