Extracting latencies from source estimates

Dear MNE users,

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 peak amplitude with mne.get_peak, however I'm interested in non-peak amplitudes (for example, 50% of the peak value)

Thanks for any help in advance!

Hi Lyam,

You could do something like:

indcs = stc.data >= 0.5*np.max(stc.data)
first_time = stc.times(indcs[0])

A real Pythonista might have a cleaner way of accomplishing the same thing.

HTH,
Andy

Hi Andy

Thanks for your reply. This looks perfect for my purposes!

Kind regards

Lyam