IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17379


Ignore:
Timestamp:
Apr 7, 2008, 3:56:52 PM (18 years ago)
Author:
eugene
Message:

count success vs failures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080324/psphot/src/psphotExtendedSourceFits.c

    r17349 r17379  
    77    int Next = 0;
    88    int Nconvolve = 0;
     9    int NconvolvePass = 0;
    910    int Nplain = 0;
     11    int NplainPass = 0;
    1012    bool savePics = false;
    1113
     
    156158            psTrace ("psphot", 4, "fit psf-conv model for %f, %f : %s chisq = %f\n", source->moments->x, source->moments->y, pmModelClassGetName (modelFit->type), modelFit->chisq);
    157159            Nconvolve ++;
     160            if (!(modelFit->flags & (PM_MODEL_STATUS_BADARGS | PM_MODEL_STATUS_NONCONVERGE | PM_MODEL_STATUS_OFFIMAGE))) {
     161                NconvolvePass ++;
     162            }
    158163          } else {
    159164              psFree (source->modelFlux);
     
    163168            psTrace ("psphot", 4, "fit plain model for %f, %f : %s chisq = %f\n", source->moments->x, source->moments->y, pmModelClassGetName (modelFit->type), modelFit->chisq);
    164169            Nplain ++;
     170            if (!(modelFit->flags & (PM_MODEL_STATUS_BADARGS | PM_MODEL_STATUS_NONCONVERGE | PM_MODEL_STATUS_OFFIMAGE))) {
     171                NplainPass ++;
     172            }
    165173          }
    166174          if (!modelFit) {
     
    253261
    254262    psLogMsg ("psphot", PS_LOG_INFO, "extended source analysis: %f sec for %d objects\n", psTimerMark ("psphot"), Next);
    255     psLogMsg ("psphot", PS_LOG_INFO, "  %d convolved models\n", Nconvolve);
    256     psLogMsg ("psphot", PS_LOG_INFO, "  %d plain models\n", Nplain);
     263    psLogMsg ("psphot", PS_LOG_INFO, "  %d convolved models (%d passed)\n", Nconvolve, NconvolvePass);
     264    psLogMsg ("psphot", PS_LOG_INFO, "  %d plain models (%d passed)\n", Nplain, NplainPass);
    257265    return true;
    258266}
Note: See TracChangeset for help on using the changeset viewer.