# mne.events\_from\_annotations not finding the correct	samples

**URL:** <https://mne.discourse.group/t/mne-events-from-annotations-not-finding-the-correct-samples/2210>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [June 3, 2020, 9:03am UTC](https://mne.discourse.group/t/mne-events-from-annotations-not-finding-the-correct-samples/2210 "2020-06-03T09:03:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 3, 2020, 9:03am UTC](https://mne.discourse.group/t/mne-events-from-annotations-not-finding-the-correct-samples/2210/1 "2020-06-03T09:03:12Z")

</div>

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.

Best,  
Sage

[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](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](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200603/d7d199b6/attachment-0001.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 3, 2020, 12:33pm UTC](https://mne.discourse.group/t/mne-events-from-annotations-not-finding-the-correct-samples/2210/2 "2020-06-03T12:33:16Z")

</div>

External Email - Use Caution

Hi Sage!

Could you please open an issue at [https://github.com/mne-tools/mne-python/issues](https://github.com/mne-tools/mne-python/issues)? It would be great if you could also share your example data set so we can try to reproduce.

Thanks,  
Clemens
