IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 21, 2006, 11:50:22 AM (20 years ago)
Author:
eugene
Message:

added tests for NaN results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotEnsemblePSF.c

    r6900 r6949  
    2929    psArray  *models = psArrayAlloc (sources->n);
    3030    psVector *index  = psVectorAlloc (sources->n, PS_TYPE_U32);
    31     models->n = index->n = 0;
     31    // DROP models->n = index->n = 0;
    3232
    3333    // option to limit analysis to a specific region
     
    170170
    171171    psSparseConstraint constraint;
    172     constraint.paramMin   = 0;
     172    constraint.paramMin   = 0.0;
    173173    constraint.paramMax   = 1e8;
    174174    constraint.paramDelta = 1e8;
     
    191191
    192192        // assign linearly-fitted normalization
     193        if (isnan(norm->data.F32[i])) {
     194            psAbort ("psphot", "ensemble source is nan");
     195        }
    193196        Fi->modelPSF->params->data.F32[1] = norm->data.F32[i];
    194197        Fi->modelPSF->dparams->data.F32[1] = sqrt(sqrt(2) * norm->data.F32[i] / (sparse->Bfj->data.F32[i] * weight->data.F32[i]));
Note: See TracChangeset for help on using the changeset viewer.