<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"><br><div><br></div><div>I can do it manually:  getting the data, cut every trial based on the time lags (all trials same length) and redefine the time axis with epochs.times , Is there a way to put back the data in the epoch object or create another one where an array (events,channels,time_points) can be passed? epochs.data does not work</div><div><br></div><div>Thanks <br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 25 mar 2020 alle ore 14:29 Alexandre Gramfort &lt;<a href="mailto:alexandre.gramfort@inria.fr" target="_blank">alexandre.gramfort@inria.fr</a>&gt; ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)">        External Email - Use Caution        </span></p><p></p><div dir="ltr">hi,<div><br></div><div>this is no straightforward equivalent to ft_redefinetrial in mne-python as this stage.</div><div><br></div><div>if you keep the stim channel in the epochs you have the information to do this.</div><div><br></div><div>someone with a clearer idea of the use case can maybe share some code.</div><div><br></div><div>I never had to do this myself</div><div><br></div><div>Alex</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 25, 2020 at 11:57 AM Edoardo Pinzuti &lt;<a href="mailto:edoardo.pinzuti@gmail.com" target="_blank">edoardo.pinzuti@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)">        External Email - Use Caution        </span></p><p></p><div dir="ltr">  Dear MNE experts,<div><br></div><div>My experiment  contains two cues in each trial with a variable delay in between,  I defined each condition base on cue and target cue  with mne.define_target_events.  Now my &#39;0&#39; in time is related to the first cue. How I can redefine my epochs based on the target cue (using the time lag between the two) so that the time &#39;0&#39; correspond to the appearance of the target cue on each trial? Is there a function similar  to ft_redefinetrial ?</div><div><br></div><div><br></div><div>Thanks</div><div>Edoardo</div></div>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></blockquote></div>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></blockquote></div>