[Mne_analysis] Question about the output of 'psd_multitaper'

Alexandre Gramfort alexandre.gramfort at inria.fr
Mon Mar 18 06:06:27 EDT 2019
Search archives:

        External Email - Use Caution        

hi,

I am not sure to understand the problem. This seems to work:

import os.path as op
import mne

data_path = op.join(mne.datasets.sample.data_path(), 'MEG', 'sample')
raw = mne.io.read_raw_fif(op.join(data_path, 'sample_audvis_raw.fif'),
preload=True)
raw.crop(0, 15)

psd, freqs = mne.time_frequency.psd_multitaper(raw)

print(psd.shape)
# (364, 4506)

print(freqs.shape)
# (4506,)

--
Alex

PS : please take the time like I just did to provide a full code snippet to
expose your problem.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190318/a0d5dadd/attachment.html 


More information about the Mne_analysis mailing list