gozemturan
(Gözem Turan)
February 3, 2023, 10:55am
5
For example, following the mne.grand_average() function can result in the previously mentioned error message. Anyhow, thanks to you, Richard, here I find the solution:
Hey everyone,
for my data analysis, I want to compare the EEG signal between two conditions averaged across participants using the mne.grand_average() function. However, this returns the following error: “All elements must be an instance of Evoked or AverageTFR, got <class ‘list’> instead.”
The evoked .fif objects come from a folder which contains evokeds from multiple participants. I loaded the evoked objects in the folder into one list with the following code:
file_names = fnmatch.filter(o…