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

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.

Returns
annotinstance of Annotations

New channel-specific annotations for the data.