If you have a question or issue with MNE-Python, please include the following info:
Platform: Windows-10-10.0.25188-SP0
Python: 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
mne: 1.1.1
Please also provide relevant code snippets – ideally a [minimal working example].
evokeds_array = []
evokeds_list = []
i =-1
for i, epochs in enumerate(epochs_arrayAug):
#%% Create evoked object
evokeds_array.append(epochs['win_card'].average())
title = 'win_card'
evokeds_array[i].plot(titles=dict(eeg=title), time_unit='s')
evokeds_list.append(epochs['win_card'].average())
epochs_arrayAug[i]['win_card'].plot_image(combine='mean')
grand_average = mne.grand_average(evokeds_array)
Hello everyone,
Im getting the following error:
ValueError: <Evoked | 'win_card' (average, N=347), -0.2 – 0.998 sec, baseline -0.2 – 0 sec, 32 ch, ~196 kB> and <Evoked | 'win_card' (average, N=212), -0.2 – 0.99801 sec, baseline -0.2 – 0 sec, 32 ch, ~196 kB> do not contain the same time instants
when trying to get the grand average from an array of Evoked objects, apparently, the error lies in that the Evoked objects have different times. I tried cropping the epochs, but the error persisted.
when I check the Tmin of the objects in the Evoked array, they slightly differ (i. e. tmin1 is -0.20000111376663554 and tmin2 is -0.20000120156012527) by they should be -0.2.
am I missing some step that fixes this? is there a way to safely remap the times to make all the Evoked events have consistent times?
Thank you.