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

**URL:** <https://mne.discourse.group/t/mne-events-from-annotations-not-finding-the-correct-samples/2211>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [June 3, 2020, 10:53am UTC](https://mne.discourse.group/t/mne-events-from-annotations-not-finding-the-correct-samples/2211 "2020-06-03T10:53:27Z")\
**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, 10:53am UTC](https://mne.discourse.group/t/mne-events-from-annotations-not-finding-the-correct-samples/2211/1 "2020-06-03T10:53:27Z")

</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

-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200603/cbdf2000/attachment-0001.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200603/cbdf2000/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: not available  
Url : [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200603/cbdf2000/attachment-0001.png](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200603/cbdf2000/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:19pm UTC](https://mne.discourse.group/t/mne-events-from-annotations-not-finding-the-correct-samples/2211/2 "2020-06-03T12:19:11Z")

</div>

External Email - Use Caution

hi Sage,

can you share a file with some code to replicate the difference?  
what is the input format?  
do you have a raw.first\_samp or raw.info['meas\_date'] available?

A  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200603/61263e78/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200603/61263e78/attachment.html)
