Skip to content

Commit

Permalink
Forgot to reset arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
withmywoessner committed Mar 5, 2024
1 parent 88618fa commit ec5de79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mne/io/eeglab/eeglab.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,10 @@ def _read_annotations_eeglab(eeg, uint16_codec=None):
"annotations."
)

onset = np.array([onset[idx] for idx in valid_indices])
duration = np.array([duration[idx] for idx in valid_indices])
description = [description[idx] for idx in valid_indices]

return Annotations(
onset=np.array(onset) / eeg.srate,
duration=duration / eeg.srate,
Expand Down

0 comments on commit ec5de79

Please sign in to comment.