IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 17, 2011, 2:42:54 PM (15 years ago)
Author:
eugene
Message:

fixed mis-assigned PASS1_SRC flag

File:
1 edited

Legend:

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

    r32633 r32699  
    101101
    102102    // generate the array of sources, define the associated pixel
    103     bool firstPass = false;
    104     if (!detections->newSources) {
    105         detections->newSources = psArrayAllocEmpty (peaks->n);
    106         firstPass = true;
    107     }
    108     sources = detections->newSources;
     103    psAssert (!detections->newSources, "programming error");
     104    sources = detections->newSources = psArrayAllocEmpty (peaks->n);
     105
     106    bool firstPass = (detections->allSources == NULL);
    109107
    110108    // if there are no peaks, we save the empty source array and return
Note: See TracChangeset for help on using the changeset viewer.