<div dir="ltr">I think it is a bug, after all the same file opened by two software (matlab and mne) appears totally different, and it would be great if you can have this figured out, do you want the downsampled bdf file? Where do I need to send the file to? It is still big after downsampling (150M).<div><br></div><div>Thanks,</div><div>Mengting</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-14 16:02 GMT-05:00 Alexandre Gramfort <span dir="ltr">&lt;<a href="mailto:alexandre.gramfort@telecom-paristech.fr" target="_blank">alexandre.gramfort@telecom-paristech.fr</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">it&#39;s possible that mne-python resamples the stim channel as it does<br>
not know it&#39;s a stim channel.<br>
<br>
it you confirm the bug please share the file so we can fix asap<br>
<br>
Alex<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, Jan 14, 2015 at 9:46 PM, Liu Mengting &lt;<a href="mailto:bigting84@gmail.com">bigting84@gmail.com</a>&gt; wrote:<br>
&gt; Ya, I opened it with matlab, see the events, there appears some more event<br>
&gt; (probably twice more), but the original events are well kept (both the<br>
&gt; temporal point and event id are both kept). However in MNE, it appears 100<br>
&gt; times more events than there should be and all their temporal order and<br>
&gt; events id are both messed up.<br>
&gt;<br>
&gt; There is also a error as below:<br>
&gt;<br>
&gt; ValueError: You have 77499 events shorter than the shortest_event.<br>
&gt; These are very unusual and you may want to set min_duration to a larger<br>
&gt; value e.g. x / <a href="http://raw.info" target="_blank">raw.info</a>[&#39;sfreq&#39;]. Where x = 1 sample shorter than the<br>
&gt; shortest event length.<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Mengting<br>
&gt;<br>
&gt; 2015-01-14 15:31 GMT-05:00 Eric Larson &lt;<a href="mailto:larson.eric.d@gmail.com">larson.eric.d@gmail.com</a>&gt;:<br>
&gt;<br>
&gt;&gt; I&#39;m not familiar with the edfbrowser routines, but if they use standard<br>
&gt;&gt; low-pass-downsample methods instead of a zero-order hold for the stimulus<br>
&gt;&gt; channel, the low-pass filter ringing will produce many errant events. When<br>
&gt;&gt; you say that you tested the file using MATLAB, you mean that you opened it?<br>
&gt;&gt; Did you look at the stimulus channel to see if the resampling introduced<br>
&gt;&gt; ringing?<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; Eric<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Jan 14, 2015 at 12:24 PM, Liu Mengting &lt;<a href="mailto:bigting84@gmail.com">bigting84@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi MNE users,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I am tring to use MNE python to process the bdf EEG file. Since our data<br>
&gt;&gt;&gt; is huge, so I first downsampled using the edfbrowser which is a bdf<br>
&gt;&gt;&gt; processing software, then I loaded the downsampled data using<br>
&gt;&gt;&gt; read_raw_edf(), but I found that the STI channel was totally messed up, I<br>
&gt;&gt;&gt; can find far more events than there should be.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; To make sure the file is good, I tested using matlab and everything works<br>
&gt;&gt;&gt; well, do you guys have any idea what is going on please?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks and appreciate,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Mengting<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Mne_analysis mailing list<br>
&gt;&gt;&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt;&gt;&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The information in this e-mail is intended only for the person to whom it<br>
&gt;&gt;&gt; is<br>
&gt;&gt;&gt; addressed. If you believe this e-mail was sent to you in error and the<br>
&gt;&gt;&gt; e-mail<br>
&gt;&gt;&gt; contains patient information, please contact the Partners Compliance<br>
&gt;&gt;&gt; HelpLine at<br>
&gt;&gt;&gt; <a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in<br>
&gt;&gt;&gt; error<br>
&gt;&gt;&gt; but does not contain patient information, please contact the sender and<br>
&gt;&gt;&gt; properly<br>
&gt;&gt;&gt; dispose of the e-mail.<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Mne_analysis mailing list<br>
&gt;&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt;&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; The information in this e-mail is intended only for the person to whom it<br>
&gt;&gt; is<br>
&gt;&gt; addressed. If you believe this e-mail was sent to you in error and the<br>
&gt;&gt; e-mail<br>
&gt;&gt; contains patient information, please contact the Partners Compliance<br>
&gt;&gt; HelpLine at<br>
&gt;&gt; <a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in<br>
&gt;&gt; error<br>
&gt;&gt; but does not contain patient information, please contact the sender and<br>
&gt;&gt; properly<br>
&gt;&gt; dispose of the e-mail.<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_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<br>
&gt; e-mail<br>
&gt; contains patient information, please contact the Partners Compliance<br>
&gt; HelpLine at<br>
&gt; <a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in<br>
&gt; error<br>
&gt; but does not contain patient information, please contact the sender and<br>
&gt; properly<br>
&gt; dispose of the e-mail.<br>
&gt;<br>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
</div></div></blockquote></div><br></div>