Repository navigation
MRG, ENH: Use overlap-add in spectrum_fit mode - #7609
Conversation
|
Thanks , Ive been really busy but I will test this as soon as I can. |
|
I did not do a full test and rigorous comparison with Matlab PSD for the original data: I am generally not a big fan of notch filters because they clearly over-filter. Here is the result with a standard The spectral distortion is arguably even worst than on the original spectrum. Now, using the There is still a bit of overfitting, but much better. In any case, the result seems to agree with what it aims to do. |
|
Changing this to MRG then. I think any other fixes would be to the basic routines and can be in separate PRs. This already seems to help fix something that is broken/missing in |
|
Rebased again. Should be ready for review/merge @agramfort |
agramfort
left a comment
There was a problem hiding this comment.
Also could we have an example or tutorial showing what it does to data?
|
@agramfort done: Also fixed a bug with inplace division that was making it work less well for weird sample rates -- @christian-oreilly you might want to re-test it on your data. It should give better results now. |
Thanks @larsoner I'll rerun PyPrep on my dataset with the master once this branch is merged. |
|
thanks @larsoner |



Closes #7577.
Based on some local testing I'm not convinced it works. But @yjmantilla @sappelhoff @mmagnuski if you want to try it just pass
filter_length='10s'or whatever tonotch_filter. Maybe this will make it easier for people to test againstcleanlineor other implementations, and/or push fixes.