Skip to content

Commit 9f784fa

Browse files
authored
Refactoring eyetracking.py (#13602)
1 parent ecccc3e commit 9f784fa

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

doc/changes/dev/13602.other.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Code refactor in :func:`mne.preprocessing.eyetracking.set_channel_types_eyetrack`, by `Himanshu Mahor`_.

mne/preprocessing/eyetracking/eyetracking.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,7 @@ def set_channel_types_eyetrack(inst, mapping):
113113
inst.info["chs"][c_ind]["unit"] = unit_new
114114

115115
# set eye (and x/y-component)
116-
loc = np.array(
117-
[
118-
np.nan,
119-
np.nan,
120-
np.nan,
121-
np.nan,
122-
np.nan,
123-
np.nan,
124-
np.nan,
125-
np.nan,
126-
np.nan,
127-
np.nan,
128-
np.nan,
129-
np.nan,
130-
]
131-
)
116+
loc = np.full(12, np.nan)
132117

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

0 commit comments

Comments
 (0)