def findPeaks(self, window = 30, delta = 3):

        maximum = -np.Inf
        width = int(window/2.0)
        peaks = []

        for index,val in enumerate(self):
            #peak found
            if val > maximum:
                maximum = val
                maxpos = index
            #checking whether peak satisfies window and delta conditions
            if max( self[max(0, index-width):index+width])+delta< maximum:
                peaks.append((maxpos, maximum))
                maximum = -np.Inf
        return peaks
**SUMMARY**
dataset/ETHPy150Open sightmachine/SimpleCV/SimpleCV/LineScan.py/LineScan.findPeaks