Hi
I am attempting to plot confidence intervals for ERPs plotted with plot_compare_evokeds with the following code:
mne.viz.plot_compare_evokeds([Epochs.iter_evoked()],
combine='mean',
ci = .95)
However I get an error:
TypeError: cannot pickle 'generator' object
From my understanding the .iter_evoked function should return 1 evoked object per Epoch, from which mean and CI is then calculated.
What am I misunderstanding?
I tried following recommendations from a previous post:plot_compare_evokeds from mne.EvokedArray: confidence intervals and ylim
however I am still at a loss
- MNE version: e.g. 0.24.0
- operating system: Windows 10 /