[Mne_analysis] MNE and EEG channel synchrony
Theodore Vasiloudis
theodoros.vasiloudis at gmail.com
Wed Oct 15 05:30:36 EDT 2014
Thank you Alexandre, that cleared things up.
@Hari
I now see what you mean, I found the cwt_morlet function in the code, it
was missing from the reference docs
and that's why I couldn't find it initially, I will try using that.
Thanks for you help.
On Tue, Oct 14, 2014 at 9:43 PM, Alexandre Gramfort <
alexandre.gramfort at telecom-paristech.fr> wrote:
> hi,
>
> here is a code snippet that should help.
>
> Best,
> Alex
>
> ---
> import numpy as np
> import mne
>
> sfreq = 1000.
> n_channels = 60
> n_times = int(sfreq * 30) # 30s of data
> data = 1e-6 * np.random.randn(n_channels, n_times) # data in microvolts
> ch_names = ['EEG%03d' % (k + 1) for k in range(n_channels)]
> ch_types = ['eeg' for _ in range(n_channels)]
> info = mne.create_info(ch_names, sfreq, ch_types)
> raw = mne.io.RawArray(data, info)
> events = mne.make_fixed_length_events(raw, id=1, duration=5.)
> epochs = mne.Epochs(raw, events, event_id=1, tmin=0, tmax=5.)
> evoked = epochs.average()
> evoked.plot()
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> 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
> http://www.partners.org/complianceline . 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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20141015/175d270a/attachment.html
More information about the Mne_analysis
mailing list