Skip to content

Commit

Permalink
Add changelog and fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
withmywoessner committed Mar 5, 2024
1 parent c34d77d commit 88618fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/changes/devel/12484.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix problem caused by onsets with NaN values using :func:`mne.io.read_raw_eeglab` by `Jacob Woessner`_
2 changes: 1 addition & 1 deletion mne/io/eeglab/eeglab.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def _read_annotations_eeglab(eeg, uint16_codec=None):
)
duration[idx] = np.nan if is_empty_array else event.duration

# Drop events with NaN onset see PR #XXXX
# Drop events with NaN onset see PR #12484
valid_indices = [
idx for idx, onset_idx in enumerate(onset) if not np.isnan(onset_idx)
]
Expand Down

0 comments on commit 88618fa

Please sign in to comment.