Hi, I am writing an edf file with highlevel.write_edf using the output of highlevel.read_edf. My example file is attached. The error is raised at line 736 of edfwriter.py for if duration_in_seconds >= 0: E TypeError: '>=' not supported between instances of 'bytes' and 'int'.
This is because in the annotations of the header, the annotation event's duration_in_seconds is read as a bytes type. I tried to convert that to float, it worked and wrote out an edf file. This file once read in again has duration_in_seconds of bytes type. Could you fix either the reader or writer?
out.edf.zip
Hi, I am writing an edf file with
highlevel.write_edf
using the output ofhighlevel.read_edf
. My example file is attached. The error is raised at line 736 ofedfwriter.py
forif duration_in_seconds >= 0
:E TypeError: '>=' not supported between instances of 'bytes' and 'int'
. This is because in the annotations of the header, the annotation event'sduration_in_seconds
is read as a bytes type. I tried to convert that tofloat
, it worked and wrote out an edf file. This file once read in again hasduration_in_seconds
of bytes type. Could you fix either the reader or writer? out.edf.zipThanks for your attention.