Please keep the list in CC.
The channels module has the tools to load and manipulate montages (both
custom and built-in):
https://mne.tools/stable/python_reference.html#module-mne.channels
I would not recommend modifying the actual files for the built-in
montages because that would change the behavior of MNE for all data,
including examples that depend on the built-ins working as they are
distributed.
For the difference between montage and layout, see the glossary
(https://mne.tools/stable/glossary.html), but here the relevant points:
layout
A |Layout|
<mne.channels.Layout — MNE 1.6.0 documentation;
gives sensor positions in 2 dimensions (defined by |x|, |y|,
>width>, and |height| values for each sensor). It is primarily used
for illustrative purposes (i.e., making diagrams of approximate
sensor positions in top-down diagrams of the head, so-called
topographies or topomaps).
montage
EEG channel names and the relative positions of the sensor w.r.t.
the scalp. While layout are 2D locations, montages give 3D
locations. A montage can also contain locations for HPI points,
fiducial points, or extra head shape points. See |DigMontage|
<mne.channels.DigMontage — MNE 1.6.0 documentation;
for the API of the corresponding object class.
HTH
Phillip
Hi?Phillip,
I hope you?are well,
Yes the montage file of the sensors, do you know how can I modify it?
for example to modify the orientation?of the sensor,
Regards
Abdallah
Hi,
What do you mean with channel file? The montage file with
electrode coordinates and names? Can you tell us more about what
the end goal is / why you want to modify this file?
Best,
Phillip
???External Email - Use Caution???
Dear Mne community,
Can you please give me a real example, how can I modify the
channel file?
Kind regards
Abdallah
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu <mailto: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/20200710/263a84f0/attachment-0002.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200710/263a84f0/attachment-0001.bin
-------------- next part --------------
External Email - Use Caution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200710/263a84f0/attachment-0003.html