IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34274


Ignore:
Timestamp:
Aug 1, 2012, 3:10:33 PM (14 years ago)
Author:
bills
Message:

In psphotFitSourcesLinear if (final) don't clear PM_SOURCE_TMPF_SUBTRACTED if the
source is going to be skipped because it is already subtracted.

File:
1 edited

Legend:

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

    r34215 r34274  
    210210        // psAssert (source->peak->footprint, "peak without footprint??");
    211211
     212        if (final) {
     213            if (source->tmpFlags & PM_SOURCE_TMPF_SUBTRACTED) continue;
     214        } else {
     215            // if (source->mode & PM_SOURCE_MODE_BLEND) continue;
     216        }
     217
    212218        // turn this bit off and turn it on again if we pass this test
    213219        source->mode &= ~PM_SOURCE_MODE_LINEAR_FIT;
     
    227233            Nsat ++;
    228234        }
    229 
    230         if (final) {
    231             if (source->tmpFlags & PM_SOURCE_TMPF_SUBTRACTED) continue;
    232         } else {
    233             // if (source->mode & PM_SOURCE_MODE_BLEND) continue;
    234         }
    235235
    236236        // generate model for sources without, or skip if we can't
Note: See TracChangeset for help on using the changeset viewer.