Skip to content

Commit c4b1851

Browse files
behingerpre-commit-ci[bot]scott-huberty
authored
eyetrack should not count as picks=data (#13723)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Scott Huberty <52462026+scott-huberty@users.noreply.github.com>
1 parent 1502d0b commit c4b1851

5 files changed

Lines changed: 6 additions & 3 deletions

File tree

doc/changes/dev/13723.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Change default-pick 'data' for "eyegaze" to false, following existing documentation. by :newcontrib:`Benedikt Ehinger`.

doc/changes/names.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
.. _Austin Hurst: https://github.com/a-hurst
3838
.. _Beige Jin: https://github.com/BeiGeJin
3939
.. _Ben Beasley: https://github.com/musicinmybrain
40+
.. _Benedikt Ehinger: https://www.benediktehinger.de
4041
.. _Bradley Voytek: https://github.com/voytek
4142
.. _Britta Westner: https://britta-wstnr.github.io
4243
.. _Bruno Aristimunha: https://bruaristimunha.github.io

mne/_fiff/pick.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ def _check_excludes_includes(chs, info=None, allow_bads=False):
10931093
dbs=True,
10941094
temperature=False,
10951095
gsr=False,
1096-
eyetrack=True,
1096+
eyetrack=False,
10971097
)
10981098
_PICK_TYPES_KEYS = tuple(list(_PICK_TYPES_DATA_DICT) + ["ref_meg"])
10991099
_MEG_CH_TYPES_SPLIT = ("mag", "grad", "planar1", "planar2")

mne/io/eyelink/tests/test_eyelink.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from mne import find_events
1212
from mne._fiff.constants import FIFF
13-
from mne._fiff.pick import _DATA_CH_TYPES_SPLIT
13+
from mne._fiff.pick import _DATA_CH_TYPES_SPLIT, _PICK_TYPES_DATA_DICT
1414
from mne.datasets.testing import data_path, requires_testing_data
1515
from mne.io import read_raw_eyelink
1616
from mne.io.eyelink._utils import _adjust_times, _find_overlaps
@@ -45,6 +45,7 @@ def test_eyetrack_not_data_ch():
4545
)
4646
assert "eyegaze" not in _DATA_CH_TYPES_SPLIT, msg
4747
assert "pupil" not in _DATA_CH_TYPES_SPLIT, msg
48+
assert not _PICK_TYPES_DATA_DICT["eyetrack"], msg
4849

4950

5051
@requires_testing_data

mne/viz/tests/test_evoked.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def test_plot_compare_evokeds(evoked):
466466
plt.close("all") # close the previous figures as to avoid a too many figs warning
467467
info_tmp = mne.create_info(["pupil_left"], evoked.info["sfreq"], ["pupil"])
468468
evoked_et = mne.EvokedArray(np.ones_like(evoked.times).reshape(1, -1), info_tmp)
469-
figs = plot_compare_evokeds(evoked_et, show_sensors=False)
469+
figs = plot_compare_evokeds(evoked_et, show_sensors=False, picks="eyetrack")
470470
assert len(figs) == 1
471471
# test plotting only invalid channel types
472472
info_tmp = mne.create_info(["ias"], evoked.info["sfreq"], ["ias"])

0 commit comments

Comments
 (0)