[Mne_analysis] Indexing the nth epoch of a condition

Lyam Bailey Lyam.Bailey at dal.ca
Wed Jun 21 10:00:13 EDT 2017
Search archives:

Dear Eric,

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). I also tried epochs[subject][cond[0]] which returned the following error: 'Event "n" is not in epochs', which suggests to me that it may not actually be possible to index in this way..?


Lyam Bailey, BSc.

Graduate Student
Department of Psychology & Neuroscience
Dalhousie University

From: mne_analysis-bounces at nmr.mgh.harvard.edu <mne_analysis-bounces at nmr.mgh.harvard.edu> on behalf of Eric Larson <larson.eric.d at gmail.com>
Sent: Tuesday, June 20, 2017 8:03:34 PM
To: Discussion and support forum for the users of MNE Software
Subject: Re: [Mne_analysis] Indexing the nth epoch of a condition

epochs[subject][cond][0] (or maybe epochs[subject][cond][:1]) should work. But be careful about dropped epochs by looking at `epochs.selection` to make sure the first instance didn't get dropped e.g. due to reject/flat params.

Is there a place you looked for this sort of information in the docs and couldn't find it? Maybe we (hopefully you :) ) could add something to the epochs tutorial<https://mne-tools.github.io/dev/auto_tutorials/plot_object_epochs.html>?


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

More information about the Mne_analysis mailing list