Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

EDF-to-EDF roundtrip results in different annotations #73

Open
a-cakir opened this issue May 12, 2023 · 1 comment
Open

EDF-to-EDF roundtrip results in different annotations #73

a-cakir opened this issue May 12, 2023 · 1 comment

Comments

@a-cakir
Copy link

a-cakir commented May 12, 2023

I generated test edf data using the make_test_data function (slightly modified version of that), saved the resulting EDF to disk, and reread it and compared to two. The annotations were different as shown below.

The read EDF has extra two empty annotations per row.

julia> edf_read.signals[3].records
5-element Vector{Vector{EDF.TimestampedAnnotationList}}:
 [EDF.TimestampedAnnotationList(1.0, 2.0, ["annot", "", "1", "", "1"])]
 [EDF.TimestampedAnnotationList(2.0, 3.0, ["annot", "", "2", "", "2"])]
 [EDF.TimestampedAnnotationList(3.0, 4.0, ["annot", "", "3", "", "3"])]
 [EDF.TimestampedAnnotationList(4.0, 5.0, ["annot", "", "4", "", "4"])]
 [EDF.TimestampedAnnotationList(5.0, 6.0, ["annot", "", "5", "", "5"])]

julia> edf.signals[3].records
5-element Vector{Vector{EDF.TimestampedAnnotationList}}:
 [EDF.TimestampedAnnotationList(1.0, 2.0, ["annot", "1", "1"])]
 [EDF.TimestampedAnnotationList(2.0, 3.0, ["annot", "2", "2"])]
 [EDF.TimestampedAnnotationList(3.0, 4.0, ["annot", "3", "3"])]
 [EDF.TimestampedAnnotationList(4.0, 5.0, ["annot", "4", "4"])]
 [EDF.TimestampedAnnotationList(5.0, 6.0, ["annot", "5", "5"])]
@kleinschmidt
Copy link
Member

I think this might be related beacon-biosignals/EDF.jl#79

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants