mne.preprocessing.annotate_nan#

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

Detect segments with NaN and return a new Annotations instance.

Parameters
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.

Returns
annotinstance of Annotations

New channel-specific annotations for the data.