# Number of events found by "find\_events" does not match the real number of events

**URL:** <https://mne.discourse.group/t/number-of-events-found-by-find-events-does-not-match-the-real-number-of-events/3131>\
**Category:** Support & Discussions\
**Tags:** preprocessing, meg, ica, event-codes, epochs\
**Created:** [May 13, 2021, 11:15am UTC](https://mne.discourse.group/t/number-of-events-found-by-find-events-does-not-match-the-real-number-of-events/3131 "2021-05-13T11:15:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shirinV](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@shirinV](https://mne.discourse.group/u/shirinV)\
**Post date:** [May 13, 2021, 11:15am UTC](https://mne.discourse.group/t/number-of-events-found-by-find-events-does-not-match-the-real-number-of-events/3131/1 "2021-05-13T11:15:37Z")

</div>

I use the code  
`events = mne.find_events(raw, stim_channel='161_201', shortest_event=1, consecutive = False)`  
to find my events. My stimulus were images in which some were presenting for 0.45 seconds, while some were presenting for 3 seconds.

However, the results of this code usually has a little difference with my actual number of events. (for example one or two three extra events are found using this command).

What can be wrong here? How can I solve the solution?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![shirinV](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@shirinV](https://mne.discourse.group/u/shirinV)\
**Post date:** [May 13, 2021, 11:24am UTC](https://mne.discourse.group/t/number-of-events-found-by-find-events-does-not-match-the-real-number-of-events/3131/2 "2021-05-13T11:24:51Z")

</div>

So the duration of my stimulus presentation was different from image to image…
