Implementing a butterworth bandfilter using scipy on a raspberry pi

764 Views Asked by At

I have code that uses scipy.signal.butter. It works fine on my windows computer but when I run it on my raspberry pi 4 I get this error

  File "/home/pi/Desktop/Python/Data_analysis_bandfitting.py", line 64, in analysis

    sos = signal.butter(10, high, 'hp', fs=Fs, output='sos')


TypeError: butter() got an unexpected keyword argument 'fs'

I'm not sure why this would work on windows but not linux. I have the latest libraries installed on both my computer and the raspberry pi.

Any ideas would be greatly appreciated

0

There are 0 best solutions below