mne.preprocessing.annotate_nan(raw, *, verbose=None)[source]

Detect segments with NaN and return a new Annotations instance.

rawinstance of Raw

Data to find segments with NaN values.

verbosebool | str | int | None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more). If used, it should be passed as a keyword-argument only.

annotinstance of Annotations

New channel-specific annotations for the data.