brainaccess.core.annotation#

Classes#

Annotation

A text label attached to a position in the EEG stream.

Module Contents#

class brainaccess.core.annotation.Annotation[source]#

Bases: ctypes.Structure

A text label attached to a position in the EEG stream.

Annotations mark events, such as a stimulus, so that they can be aligned with the EEG data. Returned by get_annotations().

Variables:
  • timestamp (int) – Sample number of the annotated position, counted from 0 at the start of the stream. It is not a time: divide by the sample rate (Hz) to get seconds since the stream start.

  • annotation (str) – The annotation text.

property annotation[source]#

The annotation text.