[Mne_analysis] reading eeg part of eeg-fMRI data

Alexandre Gramfort alexandre.gramfort at inria.fr
Tue Aug 29 16:01:29 EDT 2017
Search archives:

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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170829/8aac9b36/attachment-0001.html 


More information about the Mne_analysis mailing list