<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Dan,<br>
<br>
It looks like you're just having some events be masked with mne_process_raw.&nbsp; By default, mne_process_raw only shows you zero to non-zero transitions (I believe).&nbsp; Your python event list is showing you all event transitions.&nbsp; If you run mne_process_raw with
 the --allevents option, the event files should match.&nbsp; The sample numbers where the events occur look to match between your two event files, so you have the same events no matter which way you do it, you're just getting more events listed with one method due
 to the options you have selected.<br>
<br>
Cheers,<br>
Cody&nbsp; <br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF102879"><font face="Tahoma" color="#000000" size="2"><b>From:</b> mne_analysis-bounces@nmr.mgh.harvard.edu [mne_analysis-bounces@nmr.mgh.harvard.edu] on behalf of Dan Howarth [d.c.howarth@gmail.com]<br>
<b>Sent:</b> Friday, April 08, 2016 11:27 AM<br>
<b>To:</b> Discussion and support forum for the users of MNE Software<br>
<b>Subject:</b> [Mne_analysis] The events you get depend on what way you read them in .<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Hello, I am really confused here. There are multiple ways to read the events of a fif file and everyway I go it leads to different results. Could someone shed light onto what is happening here?
<div><br>
</div>
<div>So I have a file called DataFile_raw.fif&nbsp;</div>
<div><br>
</div>
<div>If I do the following:</div>
<div><br>
</div>
<div>r = mne.io.Raw('DataFile_raw.fif')</div>
<div>eve &nbsp;= mne.find_events(r, stim_channel='STI101')</div>
<div><br>
</div>
<div>Then eve is something like:&nbsp;<a href="https://gist.github.com/howarth/523fff7868358ebea714fb9e85209e9b" target="_blank">https://gist.github.com/howarth/523fff7868358ebea714fb9e85209e9b</a></div>
<div><br>
</div>
<div>However, if I just use the mne_processes_raw to make an eve file with the following command:</div>
<div><br>
</div>
<div>
<p class=""><span class="">mne_process_raw --raw DataFile_raw.fif --digtrig STI101 --eventsout DataFile_raw.eve</span></p>
<p class="">Then DataFile_raw.eve looks like:&nbsp;<a href="https://gist.github.com/howarth/34a65d9294ecbe69492d5f27229829f2" target="_blank">https://gist.github.com/howarth/34a65d9294ecbe69492d5f27229829f2</a></p>
<p class="">Basically it looks like the larger numbers are removed.</p>
<p class="">What is happening here?&nbsp;</p>
<p class="">Thanks,</p>
<p class="">Dan</p>
<p class=""><br>
</p>
<div><span class=""><br>
</span></div>
<p class=""><br>
</p>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>