IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 17, 2014, 12:30:45 PM (12 years ago)
Author:
eugene
Message:

merge changes (from past YEAR) into trunk

Location:
branches/eam_branches/ipp-ops-20130712/psModules
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-ops-20130712/psModules

    • Property svn:mergeinfo deleted
  • branches/eam_branches/ipp-ops-20130712/psModules/src/objects

    • Property svn:ignore
      •  

        old new  
        1212pmSourceIO_CMF_PS1_V1.v1.c
        1313pmSourceIO_CMF_PS1_V4.c
         14pmSourceIO_CMF_PS1_V5.c
        1415pmSourceIO_CMF_PS1_SV1.c
        1516pmSourceIO_CMF_PS1_SV2.c
         17pmSourceIO_CMF_PS1_SV3.c
        1618pmSourceIO_CMF_PS1_DV1.c
        1719pmSourceIO_CMF_PS1_DV2.c
        1820pmSourceIO_CMF_PS1_DV3.c
        19 
         21pmSourceIO_CMF_PS1_DV4.c
  • branches/eam_branches/ipp-ops-20130712/psModules/src/objects/pmSourceFitSet.c

    r35768 r37066  
    3232#include "pmMoments.h"
    3333#include "pmModelFuncs.h"
     34#include "pmModelClass.h"
    3435#include "pmModel.h"
    3536#include "pmModelUtils.h"
    36 #include "pmModelClass.h"
    3737#include "pmSourceMasks.h"
    3838#include "pmSourceExtendedPars.h"
    3939#include "pmSourceDiffStats.h"
    4040#include "pmSourceSatstar.h"
     41#include "pmSourceLensing.h"
    4142#include "pmSource.h"
    4243#include "pmSourcePhotometry.h"
     
    222223    float *paramOne = params + nParamBase;
    223224    float *betaOne = betas + nParamBase;
    224     bool status = model->modelLimits (mode, nParamOne, paramOne, betaOne);
     225    bool status = model->class->modelLimits (mode, nParamOne, paramOne, betaOne);
    225226    return status;
    226227}
     
    352353        // set the model success or failure status
    353354        model->flags |= PM_MODEL_STATUS_FITTED;
    354         if (!fitStatus) model->flags |= PM_MODEL_STATUS_NONCONVERGE;
     355        if (!fitStatus) {
     356          if (isnan(myMin->value)) {
     357            model->flags |= PM_MODEL_STATUS_NAN_CHISQ;
     358          } else {
     359            model->flags |= PM_MODEL_STATUS_NONCONVERGE;
     360          }
     361        }
    355362
    356363        // models can go insane: reject these
     
    381388        psVector *derivOne = thisSet->derivSet->data[i];
    382389
    383         chisqOne = model->modelFunc (derivOne, paramOne, x);
     390        chisqOne = model->class->modelFunc (derivOne, paramOne, x);
    384391        chisqSum += chisqOne;
    385392    }
     
    570577    myMin->gainFactorMode = options->gainFactorMode;
    571578    myMin->chisqConvergence = options->chisqConvergence;
     579    myMin->isInteractive = options->isInteractive;
    572580
    573581    psImage *covar = psImageAlloc (params->n, params->n, PS_TYPE_F32);
Note: See TracChangeset for help on using the changeset viewer.