'Find the peaks and valleys in the data'

def _findPeaks(self, pkWndw, pkDelta):

    self.peaks = {}
    self.valleys = {}
    for key in self.data.keys():
        ls = LineScan(self.data[key])
        self.peaks[key] = ls.findPeaks(pkWndw, pkDelta)
        self.valleys[key] = ls.findValleys(pkWndw, pkDelta)
