IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25603


Ignore:
Timestamp:
Sep 27, 2009, 10:45:58 AM (17 years ago)
Author:
eugene
Message:

move flagging of PM_SOURCE_TMPF_SUBTRACTED to pmSourceAdd/Sub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psphot/src/psphotReplaceUnfit.c

    r25409 r25603  
    1717    replace:
    1818        pmSourceAdd (source, PM_MODEL_OP_FULL, maskVal);
    19         source->tmpFlags &= ~PM_SOURCE_TMPF_SUBTRACTED;
    2019    }
    2120    psLogMsg ("psphot.replace", 3, "replace unfitted models: %f sec (%ld objects)\n", psTimerMark ("psphot.replace"), sources->n);
     
    4140
    4241      pmSourceAdd (source, PM_MODEL_OP_FULL, maskVal);
    43       source->tmpFlags &= ~PM_SOURCE_TMPF_SUBTRACTED;
    4442    }
    4543    psLogMsg ("psphot.replace", PS_LOG_INFO, "replaced models for %ld objects: %f sec\n", sources->n, psTimerMark ("psphot.replace"));
     
    6462      if (source->tmpFlags & PM_SOURCE_TMPF_SUBTRACTED) continue;
    6563
    66       pmSourceAdd (source, PM_MODEL_OP_FULL, maskVal);
    67       source->tmpFlags |= PM_SOURCE_TMPF_SUBTRACTED;
     64      pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
    6865    }
    6966    psLogMsg ("psphot.replace", PS_LOG_INFO, "replaced models for %ld objects: %f sec\n", sources->n, psTimerMark ("psphot.replace"));
     
    7168}
    7269
     70# if (0)
    7371// add source, if the source has been subtracted; do not modify state
    7472bool psphotAddWithTest (pmSource *source, bool useState, psImageMaskType maskVal) {
     
    108106    return true;
    109107}
     108# endif
Note: See TracChangeset for help on using the changeset viewer.