PolyCortex / pyMuse

Python tools associated with Muse headband
http://polycortex.polymtl.ca/
MIT License
58 stars 16 forks source link

Add band-pass filtering process #15

Closed benjamindeleener closed 7 years ago

benjamindeleener commented 7 years ago

One way to do it would be to use scipy.signal library: http://docs.scipy.org/doc/scipy/reference/signal.html#filtering

This new process should be implemented in processes.py: https://github.com/PolyCortex/pyMuse/blob/master/pymuse/processes.py

benjamindeleener commented 7 years ago

Here are two great examples of butter filtering using scipy:

https://scipy.github.io/old-wiki/pages/Cookbook/ButterworthBandpass

http://stackoverflow.com/questions/12093594/how-to-implement-band-pass-butterworth-filter-with-scipy-signal-butter

alexandreDM94 commented 7 years ago

I've tried writing a band-pass filtering - well any kind of filter actually - process as shown in the examples, though it could probably be improved. Let me know what should be changed, since you know I'm beginning with Python!

benjamindeleener commented 7 years ago

Done!