<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>Dear Marijn &amp; List</div><div><br></div><div>Thanks for your suggestion about  drop_log. I tried that and also plot_drop_log, and according to that all epochs are either &quot;IGNORED&quot; or &quot;NO_DATA&quot;  according to dropped_log. Also, in the plot_drop_log, 100% events are either &quot;NO_DATA&quot; or &quot;TOO_SHORT&quot;. <br></div><div><br></div><div>I saw in the documentation that &quot;
‘<span class="gmail-highlighted">NO_DATA</span>’ or ‘TOO_SHORT’ if epoch didn’t contain enough data&quot;, but I don&#39;t understand what does &quot;didn&#39;t contain enough data&quot; mean? I have a 64-channel eeg recording, epochs are ~3seconds long, and epoch markers, timing, amount of epochs, etc. is identified perfectly by the find_events calls. Also, all other pre-processing steps (filtering, bad channel interpolation, re-referencing, etc.) worked just fine.<br></div><div><br></div><div>Thanks in advance for any comments and suggestions,</div><div>Daniel<br></div><div><br></div><div></div><div>PS: Sorry about writing from different emails. I&#39;ll make sure that in the future I only use the registered one.<br></div><div><br></div><div>Date: Tue, 29 May 2018 20:01:33 +0300</div>
From: Marijn van Vliet &lt;<a href="mailto:w.m.vanvliet@gmail.com">w.m.vanvliet@gmail.com</a>&gt;<br>
Subject: Re: [Mne_analysis] Epoch() classifies all epochs as &quot;bad&quot;<br>
To: Discussion and support Software &lt;<a href="mailto:mne_analysis@nmr.mgh.harvard.edu">mne_analysis@nmr.mgh.harvard.<wbr>edu</a>&gt;<br>
Message-ID: &lt;<a href="mailto:3E3699E3-BEAC-40BD-BB15-B9141C4A96F3@gmail.com">3E3699E3-BEAC-40BD-BB15-<wbr>B9141C4A96F3@gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
Dear Daniel,<br>
<br>
you can try looking at epochs.drop_log after all epochs are dropped. The
 drop_log contains for each dropped epoch the reason why it was dropped.<br>
<br>
best,<br><div>
Marijn.</div><div>&gt; On 29 May 2018, at 18:34, Daniel Preciado &lt;<a href="mailto:daniel.preciadov@gmail.com">daniel.preciadov@gmail.com</a>&gt; wrote:<br>
&gt; <br>
&gt;         External Email - Use Caution        <br>
&gt; <br>
&gt; <br>
&gt; Dear list, <br>
&gt; <br>
&gt; I am having trouble with epoching eeg data. For some reason, the 
epoch() call classifies all epochs as bad, and I always end up with an 
empty Epochs object. <br>
&gt; <br>
&gt; If I try epoching with &quot;preload=False&quot;, it reads correctly the 
epochs, and the detected epochs perfectly matching the amount of trials 
and other experiment parameters. But whenever I try to do anything with 
the Epochs object (e.g. plotting), all events are deleted, and thus 
everything else throws zeroDivisionErrors. And if I call back the epochs
 object after this, it is empty (epoch counts are set to 0). <br>
&gt; <br>
&gt; I have tried all types of combinations of arguments, but the result
 is always the same: It seems to correctly recognize the epochs if the 
data is not Preloaded, but everything is discarded if the data is 
preloade, or if I try to do anything with the epochs object. I have 
tried different things with the arguments, including reject=None, 
Baseline=(None, None),  preload=False, reject=None, flat=None, 
reject_tmin=None, reject_tmax=None, detrend=None, on_missing=&#39;error&#39;, 
metadata=None, verbose=None. I have also tried creating the epochs with 
the minimum arguments necessary (Data, Event_data, Event_id), but it is 
always the same result. <br>
&gt; <br>
&gt; I have also tried the same code on different datasets, but it always discards all epochs, no matter what. <br>
&gt; <br>
&gt; I do not understand why Epoch() classifies all data (from different
 people, different sessions) as bad, can anyone help me to figure this 
out, and hopefully fix it?<br>
&gt; <br>
&gt; Thanks!<br>
&gt; <br>
&gt; ______________________________<wbr>_________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.<wbr>edu</a><br>
&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.<wbr>edu/mailman/listinfo/mne_<wbr>analysis</a><br>
&gt; <br>
&gt; <br>
&gt; The information in this e-mail is intended only for the person to whom it is<br>
&gt; addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
&gt; contains patient information, please contact the Partners Compliance HelpLine at<br>
&gt; <a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/<wbr>complianceline</a> . If the e-mail was sent to you in error<br>
&gt; but does not contain patient information, please contact the sender and properly<br>
&gt; dispose of the e-mail.<br>
<br></div><br></div>