Skip to content
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/dev/13602.other.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Code refactor in :func:`mne.preprocessing.eyetracking.set_channel_types_eyetrack`, by `Himanshu Mahor`_.
17 changes: 1 addition & 16 deletions mne/preprocessing/eyetracking/eyetracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,22 +113,7 @@ def set_channel_types_eyetrack(inst, mapping):
inst.info["chs"][c_ind]["unit"] = unit_new

# set eye (and x/y-component)
loc = np.array(
[
np.nan,
np.nan,
np.nan,
np.nan,
np.nan,
np.nan,
np.nan,
np.nan,
np.nan,
np.nan,
np.nan,
np.nan,
]
)
loc = np.full(12, np.nan)

ch_eye = ch_desc[2].lower()
if ch_eye not in valid_eye["all"]:
Expand Down