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
mne.preprocessing.ICA.fit() does not work for Evoked objects #8167
The MNE tutorial says mne.preprocessing.ICA.fit() can work for Raw, Epochs or Evoked objects. But my test shows it does not work for Evoked objects. Please see the following code, where the Evoked object is created according to the example in the tutorial.
For the last line, there is a TypeError: inst must be an instance of Raw or Epochs, got <class 'mne.evoked.EvokedArray'> instead
Additional information
I have checked the source code and feel that the source code does not really account for Evoked objects. My system is Windows 8.1. My MNE version is 0.20.7 or 0.21. My Python version is 3.7.6
Activity
agramfort commentedon Aug 27, 2020