def hanning(self, sig): """ Apply a Hanning window to the signal and return it """ han_window = signal.hann(len(sig)) return(sig*han_window)