question

Hallo,

I am trying to do a ICA analysis on my data. I am currently searching for
the right montage for the approximate locations of my electrodes. I have a
EasycapM23 - Large Equidistant 32-Channel-Arrangement: at which montage
does it correspond in mne?

Many thanks
Emanuela
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160720/e71bfe94/attachment-0001.html

hi,

you should be able to make use of the easycapM23.mat provided by fieldtrip.

Let us know if you have troubles using this file with MNE.

HTH
Alex

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

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

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

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

>
>>
>> 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
> Mne_analysis Info Page
>
>
> 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
> MyComplianceReport.com: Compliance and Ethics Reporting . 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
Mne_analysis Info Page

-------------- 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

I just downloaded your file and did this:

import mne

channel_names = None

montage = mne.channels.read_montage('easycapM23',
    ch_names=channel_names,
    path="/Users/alex/Downloads", unit='cm')

it worked.

try

montage=mne.channels.read_montage('easycapM23',ch_names=channel_names,
path="/Users/Emanuela1/Desktop/ICA/", unit='cm', transform=False)

after checking that easycapM23.txt is in folder /Users/Emanuela1/Desktop/ICA/

HTH
A

Hello,

I can't figure out where the error is in the following code:

montage = mne.channels.read_montage('standard_1020', ch_names=['F3','F4'])

info = mne.create_info(['F3','F4'], 512, ch_types=['eeg','eeg'],
montage=montage)

This gives me "No EEG channels found." but I don't really know what to do
with this. Without the montage specification in create_info there is no
error.

Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160809/9114c70d/attachment.html

Hi Nico,

Those lines work fine for me. What version of mne are you using?

Mainak

I remember I used those same lines before and they worked. I guess
then I maybe changed something either in channels.py, montage.py or in
the standard_1020.elc file. Is there a way to restore these files?

How do I find out which version of MNE I use?

Thanks
Nico

Quoting Mainak Jas <mainakjas at gmail.com>:

What do you get when you do:

import mne
mne.__version__
mne.__path__

If you are using the development workflow, you can go to the mne-python
folder and do

$ git stash

which should undo any edits you may have done.

Mainak

0.12.0 was the version I used. I used git clone to use the development
version. Now mne.__version__ shows me '0.13.dev0' as the version that
is in use. However I still get the "No EEG channels found." error
message. :frowning:

Quoting Mainak Jas <mainakjas at gmail.com>:

Can you post the output of `mne.sys_info()`?

Mainak

This is the output:

Platform: Windows-10-10.0.10586-SP0
Python: 3.5.1 |Anaconda 4.0.0 (64-bit)| (default, Jun 15 2016,
15:29:36) [MSC v.1900 64 bit (AMD64)]
Executable: C:\Users\Nico\Anaconda3\python.exe

mne: 0.13.dev0
numpy: 1.10.4 {blas=mkl_core_dll, lapack=mkl_lapack95_lp64}
scipy: 0.17.1
matplotlib: 1.5.1

sklearn: 0.17.1
nibabel: Not found
nitime: Not found
mayavi: Not found
nose: 1.3.7
pandas: 0.18.0
pycuda: Not found
skcuda: Not found

Quoting Mainak Jas <mainakjas at gmail.com>:

these lines do work also for me.

are you sure it's just these 2 lines?

if yes, try removing mne-python from your system and reinstalling it.

Best,
ALex

Now it works for me. Not really shure what has changed... I did not
remove mne-python but I did restart my computer in between I believe.

Quoting Alexandre Gramfort <alexandre.gramfort at telecom-paristech.fr>: