edfio.EdfAnnotation#

class edfio.EdfAnnotation(onset, duration, text)[source]#

A single EDF+ annotation.

Parameters:
onsetfloat

The annotation onset in seconds from recording start.

durationfloat | None

The annotation duration in seconds (None if annotation has no duration).

textstr

The annotation text, can be empty.

count(value, /)[source]#

Return number of occurrences of value.

duration[source]#

Alias for field number 1

index(value, start=0, stop=sys.maxsize, /)[source]#

Return first index of value.

Raises ValueError if the value is not present.

onset[source]#

Alias for field number 0

text[source]#

Alias for field number 2