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

Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.

annotinstance of Annotations

New channel-specific annotations for the data.