Index: /branches/eam_branches/ipp-20101205/psModules/src/objects/pmFootprintAssignPeaks.c
===================================================================
--- /branches/eam_branches/ipp-20101205/psModules/src/objects/pmFootprintAssignPeaks.c	(revision 30221)
+++ /branches/eam_branches/ipp-20101205/psModules/src/objects/pmFootprintAssignPeaks.c	(revision 30222)
@@ -88,7 +88,13 @@
         fp->peaks = psArraySort(fp->peaks, pmPeakSortBySN);
 
-	// XXX WHY am I culling duplicates?  how can there be duplicates?
+	// XXX check for an assert on duplicates (I don't think they can happen, but
+	// let's double check for now)
+
+	for (int j = 1; j < fp->peaks->n; j++) {
+	    psAssert (fp->peaks->data[j] != fp->peaks->data[j-1], "duplicate peak!");
+	}
 	continue;
 
+	// XXX WHY am I culling duplicates?  how can there be duplicates?
 	// XXX EAM : the algorithm below should be much faster than using psArrayRemove if
 	// the number of peaks in the footprint is large, or if there are no duplicates.
