<div dir="ltr"><div><div>Dear MNErs,<br><br>This is my first project trying to use MNE in &quot;real&quot; data, and I&#39;m trying to move datasets from eeglab / fieldtrip to MNE<br><br>I run into some trouble trying to epoch the data.<br><br>The data is a continuous dataset with different sessions.<br>I have a STIM channel with numbers 1 and 2 for each type of session. <br><b>One pulse every 2 min starting at the first sample</b>. <br>I then exported the data using <br><br>fieldtrip2fiff<br><br></div>making sure the channel&#39;s unit and kind were correctly set.<br><br></div>However, after importing the raw, when I tried to find the events to do the epoching using this function<br><div><div><br>events = mne.find_events(raw, stim_channel=&#39;STIM&#39;)<br><br></div><div>MNE droped the first event saying<br><br><span style="font-family:monospace,monospace">Removing orphaned offset at the beginning of the file.</span><br><br></div><div>I looked at the <span style="font-family:monospace,monospace">_find_events</span> code and realized that the event pulse should have at least one empty sample before it. <br></div><div>I tried to change the <span style="font-family:monospace,monospace">consecutive</span> parameter to no avail.<br><br>What would be the best way to keep the first event / session? <br><br>I imagine it is rare to have a stimulus already in the first sample of a continuous data, but I would like to avoid losing the first session of each subject or recoding the stimulus at the EEGLAB/fieldtrip if possible.<br></div><div><br>Thank you,<br></div><div>Leonardo<br></div><div><br></div></div></div>