[Mne_analysis] mne.events_from_annotations not finding the correct samples

Sage Boettcher sage.boettcher at psy.ox.ac.uk
Wed Jun 3 05:03:12 EDT 2020
Search archives:

        External Email - Use Caution        

Hi all,

I recently updated mne, and when doing so I found I could no longer use find_events to find my events from my raw data file. As suggested, I used events_from_annnotations instead which seemed to be working (i.e. my triggers were there and in a sensible order). However, when I compared the events structure to an old events structure that was retrieved from the same data using find_events I found that the samples did not match (see screen shot below). I’m confident that the samples from the find_events were correct — since now all my sanity check effects have disappeared. Some info that might be useful to know: in both cases I read the data in using read_raw_eeglab, I'm currently using mne version 20.5 and previously had been using 17 I really appreciate any help that you might be able to offer, I’ve look around a bit in the annotations object but to be honest its all a bit foreign to me. For example, the onset times listed there are in seconds so Im not sure how that maps onto the samples that Im finding in my events structure. Thanks in advance  for any suggestions.


 [cid:3008543A-548D-412D-A251-1B47CD38AA22 at lan]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200603/d7d199b6/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2020-06-03 at 09.47.17.png
Type: image/png
Size: 134069 bytes
Desc: Screen Shot 2020-06-03 at 09.47.17.png
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200603/d7d199b6/attachment-0001.png 

More information about the Mne_analysis mailing list