IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26628


Ignore:
Timestamp:
Jan 19, 2010, 1:34:07 PM (16 years ago)
Author:
eugene
Message:

raise an exception if we try to cull a peak that is already attached

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psModules/src/objects/pmFootprintCullPeaks.c

    r26533 r26628  
    128128                keep = false;
    129129        }
    130         if (!keep) continue;
     130        if (!keep) {
     131            psAssert (!peak->assigned, "logic error: trying to drop a previously-assigned peak");  // we should not drop any already assigned peaks.
     132            continue;
     133        }
    131134
    132135        psArrayAdd (brightPeaks, 128, fp->peaks->data[i]);
Note: See TracChangeset for help on using the changeset viewer.