def filter(self, chanis=-1, f0=500, f1=0, fr=100, gpass=0.01, gstop=50, ftype='ellip', plot=False): b, a = LFP.filter(self, chanis, f0, f1, fr, gpass, gstop, ftype) if plot: self.plot(0.31, 0.325, chanis=chanis) self.specgram(0, 500, f1=2000, p0=None, p1=None) return b, a