We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32b686c commit 6d3e41fCopy full SHA for 6d3e41f
mne/io/egi/events.py
@@ -29,6 +29,8 @@ def _read_events(input_fname, info):
29
events = np.zeros([info['n_events'], info['n_segments'] * n_samples])
30
for n, event in enumerate(event_codes):
31
for i in mff_events[event]:
32
+ if (i < 0) or (i >= events.shape[1]):
33
+ continue
34
events[n][i] = n + 1
35
return events, info
36
0 commit comments