channel locations

External Email - Use Caution

Hi all,
I am new to MNE Python and I am having some issues trying to read the channel locations of some EEG datasets I have processed with EEGLAB.
In Matlab, the EEG.chanlocs correctly shows the coordinates of each electrode (labels, type, theta, radius, X, Y, Z, sph_theta, sph_phi, sph_radius, urchin, ref). However, when I load the eeglab data in MNE Python, I can plot the data and see the channels labels, but not the location of each channel.

mne.io.read_raw_eeglab(filenameX)
raw
raw[?info?]
ValueError: picks ('info') could not be interpreted as channel names (no channel "info"), channel types (no type "info"), or a generic type (just "all" or "data")
raw.ch_names
raw.plot()

Does anyone have any thought on why MNE cannot read the channel locations, and how I could sort this out? I will use MNE for source estimation analysis.

Many thanks.

Best wishes,
Federica
[University of Central Lancashire]
Please consider the environment before printing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200120/12e7c9bb/attachment.html

External Email - Use Caution

Hi,

Probably you need to create a montage for the EEG sensors.
You can have a look at the tutorial :

https://mne.tools/stable/auto_tutorials/intro/plot_40_sensor_locations.html?highlight=montage

also this function can use be easily used:
https://mne.tools/stable/generated/mne.io.Raw.html?highlight=montage#mne.io.Raw.set_montage

best,
Dip