mne.Annotations

class mne.Annotations(onset, duration, description, orig_time=None)

Annotation object for annotating segments of raw data.

Parameters:

onset : array of float, shape (n_annotations,)

Annotation time onsets from the beginning of the recording.

duration : array of float, shape (n_annotations,)

Durations of the annotations.

description : array of str, shape (n_annotations,) | str

Array of strings containing description for each annotation. If a string, all the annotations are given the same description.

orig_time : float | int | instance of datetime | array of int | None

A POSIX Timestamp, datetime or an array containing the timestamp as the first element and microseconds as the second element. Determines the starting time of annotation acquisition. If None (default), starting time is determined from beginning of raw data acquisition. In general, raw.info['meas_date'] (or None) can be used for syncing the annotations with raw data if their acquisiton is started at the same time.

Notes

Annotations are synced to sample 0. raw.first_samp is taken into account in the same way as with events. .. automethod:: __init__