[Mne_analysis] reading eeg part of eeg-fMRI data

Jaakko Leppakangas jaeilepp at gmail.com
Wed Aug 30 03:47:57 EDT 2017
Search archives:

Fix at https://github.com/mne-tools/mne-python/pull/4520.

On Tue, Aug 29, 2017 at 11:01 PM, Alexandre Gramfort <
alexandre.gramfort at inria.fr> wrote:

> here is an example:
>
> import os
> import numpy as np
> import pandas as pd
> import matplotlib.pyplot as plt
>
> import mne
> from mne.channels import Montage
>
> fname = os.path.join(os.path.dirname(mne.__file__),
>                      'channels/data/montages/10-5_EGI129.csd')
>
> data = np.genfromtxt(fname, dtype='str', skip_header=2)
> ch_names = data[:, 0].tolist()
> pos = data[:, 4:7].astype(float)
> selection = np.arange(len(pos))
>
> montage = Montage(pos=pos, ch_names=ch_names, kind="10-5_EGI129",
>                   selection=selection)
>
>
>
> _______________________________________________
> 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/20170830/a132f2a2/attachment.html 


More information about the Mne_analysis mailing list