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
I (mis)use epochs.iter_evokeds for confidence intervals from plot_compare_evokeds a lot. That is really slow. Is there some trivial way for speeding up iter_evokeds? (Instead of doing the sensible thing and speeding up plot_compare_evokeds itself ...)
I don't see one, it seems the problem is it's calling Epochs.next and creating 100s of Evokeds via EvokedArray, which is simply inherently slow.
I don't know how iter_evokeds works exactly but I assume it could create the Evoked object only once and only change the .data then (if it doesn't do this already).
it's very possible it does a copy of the info which can take time. one
option would be to add a parameter to iter_evokeds method to avoid as many
copies as possible
Activity
mmagnuski commentedon Apr 28, 2019
I don't know how
iter_evokedsworks exactly but I assume it could create the Evoked object only once and only change the.datathen (if it doesn't do this already).agramfort commentedon Apr 29, 2019
jona-sassenhagen commentedon May 4, 2019
Thanks, might be worth doing. I will self assign, although this is low priority I think because I'm abusing things here.
add copy param to iter_evoked. fix mne-tools#6250
agramfort commentedon Dec 28, 2019
see #7164
add copy param to iter_evoked. fix mne-tools#6250
MRG: Add copy param to iter_evoked (#7164)
MRG: Add copy param to iter_evoked (mne-tools#7164)
MRG: Add copy param to iter_evoked (mne-tools#7164)