[Mne_analysis] question
Emanuela Liaci
emanuela.liaci at gmail.com
Tue Jul 26 10:21:36 EDT 2016
Hi again,
since with the mat file it was more complicated that I imagine, I created
now a text file which contains the number of the channel, theta and phi
(here attached).
When I run this:
montage=mne.channels.read_montage('easycapM23',ch_names=channel_names,
path="/Users/Emanuela1/Desktop/ICA/easycapM23.txt", unit='cm',
transform=False)
I get always this error: OSError: [Errno 20] Not a directory:
'/Users/Emanuela1/Desktop/ICA/easycapM23.txt'
But I actually could upload other text files from the same folder for other
purposes. why do I have this problem?
Many thanks,
Emanuela
On Mon, Jul 25, 2016 at 10:33 PM, Alexandre Gramfort <
alexandre.gramfort at telecom-paristech.fr> wrote:
> hi,
>
> you need to read the mat file and produce a txt file such as this one:
>
>
> https://github.com/mne-tools/mne-python/blob/master/mne/channels/data/montages/easycap-M10.txt
>
> call it easycap-M23.txt
>
> and then you should be able to read provided you set the good path.
>
> HTH
> Alex
>
>
> On Mon, Jul 25, 2016 at 5:09 PM, Emanuela Liaci
> <emanuela.liaci at gmail.com> wrote:
> >
> > On Wed, Jul 20, 2016 at 10:47 PM, Alexandre Gramfort
> > <alexandre.gramfort at telecom-paristech.fr> wrote:
> >>
> >> easycapM23.mat
> >
> >
> > Hi,
> >
> > I am having some troubles to use this file with mne. This is what I have
> > written:
> >
> > montage=mne.channels.read_montage('easycapM23',ch_names=channel_names,
> > path="/Users/Emanuela1/Desktop/easycapM23.mat", unit='cm')
> >
> > it gives me back an error I suppose due to file extension. What should I
> do?
> >
> > Thanks
> > Emanuela
> >
> >
> > _______________________________________________
> > 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.
> >
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160726/a5ba623e/attachment.html
-------------- next part --------------
Name Theta Phi
1 -90 -72
2 90 72
3 -90 -36
4 -60 -51
5 45 90
6 60 51
7 90 36
8 -69 -21
9 -31 -46
10 31 46
11 69 21
12 -90 0
13 -45 0
14 0 0
15 45 0
16 90 0
17 -113 18
18 -69 21
19 -31 46
20 31 -46
21 69 -21
22 113 -18
23 -90 36
24 -60 51
25 -45 -90
26 60 -51
27 90 -36
28 -113 54
29 -90 72
30 90 90
31 90 -72
32 113 -54
More information about the Mne_analysis
mailing list