Repository navigation
Add line-noise removal - #9
Conversation
|
@sappelhoff maybe something you want to include in PyPREP? |
|
Hi @cbrnr thanks for the tag. I would have to check whether we still use the mne method in the codebase there. If we do, then switching to your revamp here would be a welcome contribution! |
|
Yes, you are using |
|
Actually, is there a reason you did not replace the mne version with this one? |
|
Yes, because (1) it doesn't produce the exact same results and (2) it takes too long until it is released (I needed it now). |
|
ok, understood. For pyprep, I see the benefit of adopting this, except that the pins in this package are a bit too strong for me, and I would add a couple more dependencies that would blow pyprep up. So I am thinking of vendoring the code instead (with proper license attribution, of course). |
|
If you are more specific about the pins and dependencies maybe we can relax them? |
I'll come back to you about this if the mne-route fails (i.e., if nobody other than us wants to replace the old spectrum fit with your new code there). |
This implementation is roughly 50x faster than MNE-Python's
notch_filter(method="spectrum_fit"). On a real-world data set (around 1 hour of data), this implementation takes around 1.4 seconds, whereas the MNE-Python implementation takes around 70 seconds.