IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41416


Ignore:
Timestamp:
Sep 17, 2020, 12:21:28 PM (6 years ago)
Author:
eugene
Message:

clear the tmpFlags field for externally-supplied sources

File:
1 edited

Legend:

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

    r38560 r41416  
    104104                pmSource *source = extCMF->allSources->data[i];
    105105                source->mode |= PM_SOURCE_MODE_EXTERNAL;
     106                source->tmpFlags = 0;
     107                // these flags are used to track the state of analysis of the sources, but
     108                // at this point, these sources are now effectively new so the flags
     109                // should be cleared.
    106110
    107111                // the supplied peak flux needs to be re-normalized
     
    135139                // keep the Mx,My values for the centroid. 
    136140                source->mode |= PM_SOURCE_MODE_EXTERNAL;
     141                source->tmpFlags = 0;
     142                // these flags are used to track the state of analysis of the sources, but
     143                // at this point, these sources are now effectively new so the flags
     144                // should be cleared.
    137145
    138146                // source->peak->detValue,rawFlux,smoothFlux all set to input flux value which is scaled
     
    165173                pmSource *source = extSourcesTXT->data[i];
    166174                source->mode |= PM_SOURCE_MODE_EXTERNAL;
     175                source->tmpFlags = 0;
     176                // these flags are used to track the state of analysis of the sources, but
     177                // at this point, these sources are now effectively new so the flags
     178                // should be cleared.
    167179
    168180                // the supplied peak flux needs to be re-normalized
     
    253265      pmSource *newSource = pmSourceCopy(inSource);
    254266      newSource->mode |= PM_SOURCE_MODE_EXTERNAL;
     267      newSource->tmpFlags = 0;
     268      // these flags are used to track the state of analysis of the sources, but
     269      // at this point, these sources are now effectively new so the flags
     270      // should be cleared.
    255271     
    256272      // drop the loaded source modelPSF
Note: See TracChangeset for help on using the changeset viewer.