[Mne_analysis] Indexing the nth epoch of a condition

Eric Larson larson.eric.d at gmail.com
Wed Jun 21 10:06:33 EDT 2017
Search archives:

> Thanks for your email. Unfortunately this didn't work - it simply returned
> a single epoch per subject (the first epoch in the dataset, I suspect).
This sounds very close to what you want. I probably should have been more
explicit and noted that the code I suggested would need to be looped over
conditions (cond), like:

evokeds[subject] = {cond: epochs[subject][cond][0].average() for cond
in conditions}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170621/f343f3a1/attachment.html 

More information about the Mne_analysis mailing list