beacon-biosignals / OndaEDF.jl

utilities for importing/exporting EDF Files to/from Onda datasets
Other
3 stars 2 forks source link

fix handling of negative resolutions in export #81

Closed kleinschmidt closed 1 year ago

kleinschmidt commented 1 year ago

fixes #80

issue was with an optimized path (not re-encoding if the encoded values can be directly converted to Int16 losslessly) was not handling negative resolution correctly for decoded samples as input. one line fix and added more tests (confirmed to fail on this case before the fix was pushed, see the first build).