External Email - Use Caution

Hello
My aim is to get 100 averaged epochs of MEG data with saving information on each condition. I tried to use epochs average, but maybe my approach or my code isn't correct. My code:
evokeds = []
for trial_type in epochs.event_id:
    evokeds.append(epochs[trial_type].average())
    evokeds.append(evokeds[trial_type].average())

And after that I get an error:
evokeds.append(evokeds[trial_type].average())
TypeError: list indices must be integers or slices, not str

If I use just epochs averaging
= []
for trial_type in epochs.event_id:
    evokeds.append(epochs[trial_type].average())

Works fine.

I understand that presented examples didn't use these multiple averaging, but I need for comparing with other data which used this 100 times averaging.

Looking forward for your replay

Best regards,
Nina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190304/abc98ad4/attachment.html

External Email - Use Caution

evokeds is a list so doing:

evokeds[trial_type].average() ## will break

epochs[trial_type].average() ## work

A

External Email - Use Caution

I understand that but how I can average one epoch multiple times? As I understand from docs, there are no average methods for evoked data.

External Email - Use Caution

I need to take 1.026s data and average it 110 times. And plot it after.