braindecode.preprocessing.CropByAnnotations#

class braindecode.preprocessing.CropByAnnotations(annotations=None, *, verbose=None)[source]#

Braindecode preprocessor wrapper for crop_by_annotations().

Get crops of raw data file for selected annotations.

Parameters:
  • annotations (instance of Annotations | None) – The annotations to use for cropping the raw file. If None, the annotations from the instance are used.

  • verbose (bool | 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:

raws (list) – The cropped raw objects.