# question

**URL:** <https://mne.discourse.group/t/question/1049>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [July 20, 2016, 9:42am UTC](https://mne.discourse.group/t/question/1049 "2016-07-20T09:42:43Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [July 20, 2016, 9:42am UTC](https://mne.discourse.group/t/question/1049/1 "2016-07-20T09:42:43Z")

</div>

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](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160720/e71bfe94/attachment-0001.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [July 20, 2016, 8:47pm UTC](https://mne.discourse.group/t/question/1049/2 "2016-07-20T20:47:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [July 25, 2016, 3:09pm UTC](https://mne.discourse.group/t/question/1049/3 "2016-07-25T15:09:21Z")

</div>

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](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160725/cca0232b/attachment.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [July 25, 2016, 8:33pm UTC](https://mne.discourse.group/t/question/1049/4 "2016-07-25T20:33:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [July 26, 2016, 2:21pm UTC](https://mne.discourse.group/t/question/1049/5 "2016-07-26T14:21:36Z")

</div>

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](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](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  
> \> [MyComplianceReport.com: Compliance and Ethics Reporting](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  
> [Mne\_analysis Info Page](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](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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [July 26, 2016, 2:25pm UTC](https://mne.discourse.group/t/question/1049/6 "2016-07-26T14:25:18Z")

</div>

I just downloaded your file and did this:

import mne

channel\_names = None

montage = mne.channels.read\_montage('easycapM23',  
&nbsp;&nbsp;&nbsp;&nbsp;ch\_names=channel\_names,  
&nbsp;&nbsp;&nbsp;&nbsp;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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 9, 2016, 6:33pm UTC](https://mne.discourse.group/t/question/1049/7 "2016-08-09T18:33:54Z")

</div>

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](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160809/9114c70d/attachment.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 9, 2016, 6:40pm UTC](https://mne.discourse.group/t/question/1049/8 "2016-08-09T18:40:46Z")

</div>

Hi Nico,

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

Mainak

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 9, 2016, 7:00pm UTC](https://mne.discourse.group/t/question/1049/9 "2016-08-09T19:00:26Z")

</div>

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](http://gmail.com)\>:

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 9, 2016, 7:03pm UTC](https://mne.discourse.group/t/question/1049/10 "2016-08-09T19:03:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 9, 2016, 7:27pm UTC](https://mne.discourse.group/t/question/1049/11 "2016-08-09T19:27:01Z")

</div>

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

Quoting Mainak Jas \<mainakjas at [gmail.com](http://gmail.com)\>:

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 10, 2016, 12:15pm UTC](https://mne.discourse.group/t/question/1049/12 "2016-08-10T12:15:56Z")

</div>

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

Mainak

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 10, 2016, 12:33pm UTC](https://mne.discourse.group/t/question/1049/13 "2016-08-10T12:33:16Z")

</div>

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](http://gmail.com)\>:

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 10, 2016, 1:02pm UTC](https://mne.discourse.group/t/question/1049/14 "2016-08-10T13:02:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 10, 2016, 3:28pm UTC](https://mne.discourse.group/t/question/1049/15 "2016-08-10T15:28:42Z")

</div>

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](http://telecom-paristech.fr)\>:
