beacon-biosignals / OndaEDF.jl

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

Plans should note if a file is truncated #59

Open ericphanson opened 1 year ago

ericphanson commented 1 year ago

Currently, it is just a warning in EDF.jl, but I think accessing this information programatically could be useful.

ararslan commented 1 year ago

I think this is something that'd have to be handled by EDF.jl itself before OndaEDF could reasonably expose this. EDF.jl could store e.g. the number of bytes that didn't get read from the stream, which would be 0 for untruncated files. There are cases where that can't be determined though (cf. https://github.com/beacon-biosignals/EDF.jl/pull/62).