Skip to content

Commit 96043cd

Browse files
Update mne/io/eyelink/_utils.py
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
1 parent 80e929f commit 96043cd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

mne/io/eyelink/_utils.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -746,12 +746,9 @@ def _make_eyelink_annots(df_dict, create_annots, apply_offsets):
746746
raise ValueError(f"Missing column: {required_cols - set(df.columns)}")
747747

748748
def get_button_description(row):
749-
try:
750-
button_id = int(row["button_id"])
751-
action = "press" if row["button_pressed"] == 1 else "release"
752-
return f"button_{button_id}_{action}"
753-
except Exception as e:
754-
raise ValueError(f"Invalid row for button: {row}") from e
749+
button_id = int(row["button_id"])
750+
action = "press" if row["button_pressed"] == 1 else "release"
751+
return f"button_{button_id}_{action}"
755752

756753
df = df.sort_values("time")
757754
onsets = df["time"]

0 commit comments

Comments
 (0)