Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easycap-M43 montage #11744

Merged
merged 7 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changes/latest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Enhancements
~~~~~~~~~~~~
- Add ``cmap`` argument for the :func:`mne.viz.plot_sensors` (:gh:`11720` by :newcontrib:`Gennadiy Belonosov`)
- When failing to locate a file, we now print the full path in quotation marks to help spot accidentally added trailing spaces (:gh:`11718` by `Richard Höchenberger`_)
- Add standard montage lookup table for ``easycap-M43`` (:gh:`11744` by :newcontrib:`Diptyajit Das`)
- Added :class:`mne.preprocessing.eyetracking.Calibration` to store eye-tracking calibration info, and :func:`mne.preprocessing.eyetracking.read_eyelink_calibration` to read calibration data from EyeLink systems (:gh:`11719` by `Scott Huberty`_)

Bugs
Expand Down
2 changes: 2 additions & 0 deletions doc/changes/names.inc
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@

.. _Dinara Issagaliyeva: https://github.com/dissagaliyeva

.. _Diptyajit Das: https://github.com/dasdiptyajit

.. _Dirk Gütlin: https://github.com/DiGyt

.. _Dmitrii Altukhov: https://github.com/dmalt
Expand Down
1 change: 1 addition & 0 deletions mne/channels/_standard_montage_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def _mgh_or_standard(basename, head_size, coord_frame="unknown"):
"EGI_256": _egi_256,
"easycap-M1": partial(_easycap, basename="easycap-M1.txt"),
"easycap-M10": partial(_easycap, basename="easycap-M10.txt"),
"easycap-M43": partial(_easycap, basename="easycap-M43.txt"),
"GSN-HydroCel-128": partial(_hydrocel, basename="GSN-HydroCel-128.sfp"),
"GSN-HydroCel-129": partial(_hydrocel, basename="GSN-HydroCel-129.sfp"),
"GSN-HydroCel-256": partial(_hydrocel, basename="GSN-HydroCel-256.sfp"),
Expand Down
65 changes: 65 additions & 0 deletions mne/channels/data/montages/easycap-M43.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
Site Theta Phi
1 23 90
2 23 30
3 23 -30
4 23 -90
5 -23 30
6 -23 -30
7 46 74
8 46 41
9 46 8
10 46 -25
11 46 -57
12 46 -90
13 -46 57
14 -46 25
15 -46 -8
16 -46 -41
17 -46 -74
18 69 76
19 69 49
20 69 21
21 69 -7
22 69 -35
23 69 -62
24 69 -90
25 -69 62
26 -69 35
27 -69 7
28 -69 -21
29 -69 -49
30 -69 -76
31 92 90
32 92 62
33 92 34
34 92 6
35 92 -21
36 92 -49
37 92 -76
38 -92 76
39 -92 49
40 -92 21
41 -92 -6
42 -92 -34
43 -92 -62
44 115 35
45 115 10
46 115 -15
47 115 -40
48 115 -65
49 115 -90
50 -115 65
51 -115 40
52 -115 15
53 -115 -10
54 -115 -35
55 138 23
56 138 -15
57 138 -40
58 138 -65
59 138 -90
60 -138 65
61 -138 40
62 -138 15
63 -138 -23
Ref 0 0
4 changes: 4 additions & 0 deletions mne/channels/montage.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ class _BuiltinStandardMontage:
name="easycap-M10",
description="EasyCap with numbered electrodes (61 locations)",
),
_BuiltinStandardMontage(
name="easycap-M43",
description="EasyCap with numbered electrodes (64 locations)",
),
_BuiltinStandardMontage(
name="EGI_256",
description="Geodesic Sensor Net (256 locations)",
Expand Down
2 changes: 1 addition & 1 deletion mne/channels/tests/test_montage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1915,7 +1915,7 @@ def test_read_dig_hpts():

def test_get_builtin_montages():
"""Test help function to obtain builtin montages."""
EXPECTED_COUNT = 27
EXPECTED_COUNT = 28

montages = get_builtin_montages()
assert len(montages) == EXPECTED_COUNT
Expand Down