def glove_filter(self, order = 4, highcut = 2): nyq = 0.5 * self.sRate['glove'] high = highcut/nyq b, a = butter(N=order, Wn = high, btype = 'lowpass') self.glove = filtfilt(b=b, a=a, x=self.glove, axis=0)