<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body>
Hi Lyam,<br>
<br>
You could do something like:<br>
<br>
indcs = stc.data >= 0.5*np.max(stc.data)<br>
first_time = stc.times(indcs[0])<br>
<br>
A real Pythonista might have a cleaner way of accomplishing the same
thing.<br>
<br>
HTH,<br>
Andy<br>
<br>
<div class="moz-cite-prefix">On 2017-05-04 08:52 PM, Lyam Bailey
wrote:<br>
</div>
<blockquote
cite="mid:BN6PR03MB2689B5474C1107EFDF2EA53892EA0@BN6PR03MB2689.namprd03.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
dir="ltr">
<p>Dear MNE users,</p>
<p><br>
</p>
<p>When dealing with MEG source estimates, is there a way to
extract the latency of a user-specified amplitude? I know it's
possible to extract the position and latency of the
<b>peak</b> amplitude with mne.get_peak, however I'm
interested in non-peak amplitudes (for example, 50% of the
peak value)</p>
<p><br>
</p>
<p>Thanks for any help in advance!</p>
<p><span style="font-family: arial, sans-serif; font-size:
12.8px;">---------------------------------------------------------</span><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr"
style="font-size:12pt; color:#000000;
font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="color:rgb(0,0,0)"></span>
<p><span style="color:rgb(0,0,0);
font-family:arial,sans-serif; font-size:12.8px">Lyam
Bailey, BSc.</span><br>
<span style="color:rgb(0,0,0)"></span></p>
<span style="color:rgb(0,0,0)"></span>
<span style="color:rgb(0,0,0)"></span>
<div style="color:rgb(136,136,136);
font-family:arial,sans-serif; font-size:12.8px">
<span style="color:rgb(0,0,0)">Graduate Student</span></div>
<span style="color:rgb(0,0,0)"></span>
<div style="color:rgb(136,136,136);
font-family:arial,sans-serif; font-size:12.8px">
<span style="color:rgb(0,0,0)">Department of Psychology
& Neuroscience</span></div>
<span style="color:rgb(0,0,0)"></span>
<div style="color:rgb(136,136,136);
font-family:arial,sans-serif; font-size:12.8px">
<span style="color:rgb(0,0,0)">Dalhousie University</span></div>
<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Mne_analysis mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a>
<a class="moz-txt-link-freetext" href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a>
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
<a class="moz-txt-link-freetext" href="http://www.partners.org/complianceline">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
</pre>
</blockquote>
<br>
</body>
</html>