<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-MY"><div class="gmail-m_-5780287066888252045WordSection1"><p class="MsoNormal" style="margin-left:36pt"><span lang="EN-US" style="font-size:12pt;font-family:&quot;Modern No. 20&quot;,serif"><br>import mne<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:36pt"><span lang="EN-US" style="font-size:12pt;font-family:&quot;Modern No. 20&quot;,serif">filename = r&#39;S17_3.mff&#39;   # Accessible via the: <a href="https://drive.google.com/drive/folders/15lAjuEPC2iSbBKBSy8y11Q0Fs24cnSd1" target="_blank">https://drive.google.com/drive/folders/15lAjuEPC2iSbBKBSy8y11Q0Fs24cnSd1</a></span></p></div></div></blockquote><div><br></div><div>The file I can download from that link is S17_1.mff. When I download it, modify your code snippet to use that filename, and run it, I get an `epochs` instance with 8 events. `epochs.drop_bad()` gives 7 events, which makes sense because the first event will be cut off by the `tmin=-0.2` default. So I can&#39;t really reproduce your error.</div><div><br></div><div>You probably also want to pass `tmin=0, tmax=duration, baseline=None` or something similar to make sure you actually get 30 second epochs (the defaults are tmin=-0.2, tmax=5.0).</div><div><br></div><div>Eric</div><div><br></div></div></div>