holgern / pyedflib

pyedflib is a python library to read/write EDF+/BDF+ files based on EDFlib.
http://pyedflib.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
214 stars 121 forks source link

multiple annotation channels #201

Closed hkokur closed 1 year ago

hkokur commented 1 year ago

hello,

i am trying to write the classifications of two different technicians into one edf file and i need to write both classifications seperate annotation channels. is pyedflib/edfplus support the multiple annotations channel and how can i write two different classification seperate channel?

DimitriPapadopoulos commented 1 year ago

Does EDF+ allow multiple channels?

The EDF+ specs refer to a single annotations signal in 2.2.1. The 'EDF Annotations' signal:

This signal is identified by giving it (in the EDF+ header) the label 'EDF Annotations'.

DimitriPapadopoulos commented 1 year ago

You may add a prefix to each annotation, to distinguish between technicians:

skjerns commented 1 year ago

I don't think there is a way to add a second annotation channel without violating the EDF specifications (correct me if I'm wrong!). So this can only be solved by manually using some char in front of the annotation.