<div dir="ltr">Hi Lau,<div><br></div><div>I thought there was a function for this on raw data but I can no longer find it (so I too would be interested to hear what others have to say). But it should be possible to do this in sort of a hack-ish way by just shifting the times of the events in the event table. For example:</div>
<div><div><span class=""><span style="white-space:pre"><br></span></span></div><div><span class=""><span style="white-space:pre">        # Get the event list
        events = mne.find_events( raw, min_duration = .002 )</span><br></span></div><div><span class="" style="white-space:pre"><br></span></div><div><span class="" style="white-space:pre">        </span># Adjust the trigger latencies</div>
<div><span class="" style="white-space:pre">        </span>events[:,0] = [ x + 25 for x in events[:,0] ]</div></div><div><br></div><div>Alternatively, I suppose you could just pull out bigger epochs (e.g., 25 ms longer than you intend) in the beginning, then use evoked.shift_time later, and make sure to leave off the first 25 ms of the epoch in your plotting and analysis. But yes, it would be great if there is a cleaner way to do this.</div>
<div><br></div><div>Best,</div><div>Steve</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><br><br></div>Stephen Politzer-Ahles<br>New York University, Abu Dhabi<br>Neuroscience of Language Lab<br>
<a href="http://www.nyu.edu/projects/politzer-ahles/" target="_blank">http://www.nyu.edu/projects/politzer-ahles/</a><br></div></div>
<br><br><div class="gmail_quote">On Tue, Apr 29, 2014 at 1:34 PM, Lau Møller Andersen <span dir="ltr">&lt;<a href="mailto:lau.andersen@cnru.dk" target="_blank">lau.andersen@cnru.dk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear list<br>
<br>
I am aware of how to shift the time-scale in evoked files:<br>
<a href="http://martinos.org/mne/stable/auto_examples/plot_shift_evoked.html#example-plot-shift-evoked-py" target="_blank">http://martinos.org/mne/stable/auto_examples/plot_shift_evoked.html#example-plot-shift-evoked-py</a><br>

<br>
But is it possible to do it already on the raw file? (I have a trigger delay of 25 msec.)<br>
<br>
The reason for this being preferable in my view is that if you do it after having epoched, you effectively include 25 msec of data before the epoch that does not belong to the epoch. Furthermore, you exclude 25 msec of data at the end of the epoch that does belong in the epoch.<br>

<br>
Best Wishes<br>
<br>
Lau<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>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br>
</blockquote></div><br></div>