You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RFC: Remove "spectrum_fit" from notch filter #7577
I have never really gotten it to work in practice, and users on Gitter are unhappy that it takes ages to run. I wonder if we should deprecate and remove it, as I'm not sure if fixing it is even really feasible.
What I can contribute to this is that in the tests mentioned in sappelhoff/pyprep#21 it seems that the agreement between the prep cleanline method and the mne spectrum notch is high but I haven't really tested it focusing on that part. Maybe doing some simulations would help us determining if it is worthwhile leaving it there.
@mmagnuski suggested that this deficiency might be due to not operating on windows of raw data, which is entirely possible. I've opened a PR to make a general overlap-add processing class in #7598 that would hopefully make it easy to do so.
I just want to confirm, in case that can be useful, that, as it has been mentioned in #7598, at least part of the very long processing for this function comes from the fact that the algorithm is applied on the whole raw file (or at least, much too long part of it). I pinpointed for my case where it was hanging and it was at the line dpss = _get_dpss()(N, half_nbw, Kmax) in the function dpss_windows(...). It resulted in a call equivalent to scipy.signal.windows.dpss(100000, 3383.0, 6766) which takes forever. It now works quite well and within an acceptable time with #7609, using filter_length='10s'.
Reacted by Yorguin José Mantilla Ramos, Stefan Appelhoff and Mikolaj Magnuski
Activity
mmagnuski commentedon Apr 8, 2020
Maybe we should move it to sandbox? But I'm fine either way.
sappelhoff commentedon Apr 10, 2020
this is relevant to sappelhoff/pyprep#18
@yjmantilla
edit: This is the part in the gitter discussion that Eric referred to.
yjmantilla commentedon Apr 10, 2020
What I can contribute to this is that in the tests mentioned in sappelhoff/pyprep#21 it seems that the agreement between the prep cleanline method and the mne spectrum notch is high but I haven't really tested it focusing on that part. Maybe doing some simulations would help us determining if it is worthwhile leaving it there.
larsoner commentedon Apr 10, 2020
@mmagnuski suggested that this deficiency might be due to not operating on windows of raw data, which is entirely possible. I've opened a PR to make a general overlap-add processing class in #7598 that would hopefully make it easy to do so.
christian-oreilly commentedon Jul 31, 2020
I just want to confirm, in case that can be useful, that, as it has been mentioned in #7598, at least part of the very long processing for this function comes from the fact that the algorithm is applied on the whole raw file (or at least, much too long part of it). I pinpointed for my case where it was hanging and it was at the line
dpss = _get_dpss()(N, half_nbw, Kmax)in the functiondpss_windows(...). It resulted in a call equivalent toscipy.signal.windows.dpss(100000, 3383.0, 6766)which takes forever. It now works quite well and within an acceptable time with #7609, using filter_length='10s'.