Skip to content

Commit de86932

Browse files
paulroujanskyPaul ROUJANSKY
andauthored
Raise warning instead of error when loading channel-specific annotations for missing channels (mne-tools#12017)
Co-authored-by: Paul ROUJANSKY <[email protected]>
1 parent 5c4166f commit de86932

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/changes/devel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Bugs
5353
- Fix bug with :meth:`~mne.viz.Brain.add_annotation` when reading an annotation from a file with both hemispheres shown (:gh:`11946` by `Marijn van Vliet`_)
5454
- Fix bug with axis clip box boundaries in :func:`mne.viz.plot_evoked_topo` and related functions (:gh:`11999` by `Eric Larson`_)
5555
- Fix bug with ``subject_info`` when loading data from and exporting to EDF file (:gh:`11952` by `Paul Roujansky`_)
56-
- Fix handling of channel information in annotations when loading data from and exporting to EDF file (:gh:`11960` by `Paul Roujansky`_)
56+
- Fix handling of channel information in annotations when loading data from and exporting to EDF file (:gh:`11960` :gh:`12017` by `Paul Roujansky`_)
5757
- Add missing ``overwrite`` and ``verbose`` parameters to :meth:`Transform.save() <mne.transforms.Transform.save>` (:gh:`12004` by `Marijn van Vliet`_)
5858
- Correctly prune channel-specific :class:`~mne.Annotations` when creating :class:`~mne.Epochs` without the channel(s) included in the channel specific annotations (:gh:`12010` by `Mathieu Scheltienne`_)
5959

mne/io/edf/edf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def __init__(
208208
tal_data[0],
209209
encoding=encoding,
210210
)
211-
self.set_annotations(annotations)
211+
self.set_annotations(annotations, on_missing="warn")
212212

213213
def _read_segment_file(self, data, idx, fi, start, stop, cals, mult):
214214
"""Read a chunk of raw data."""

0 commit comments

Comments
 (0)