def low_pass(self,data_buffer): [b, a] = [self.low_pass_coefficients[0],self.low_pass_coefficients[1]] low_passed = signal.filtfilt(b,a,data_buffer) return low_passed