beacon-biosignals / EDF.jl

Read and write EDF files in Julia
MIT License
18 stars 5 forks source link

Track whether truncated records were encountered on read #65

Open ararslan opened 1 year ago

ararslan commented 1 year ago

When reading a file with one or more truncated data records, we currently emit a warning and store the corrected number of records in the header as though that's what we had been given all along. However, this is not programmatically discoverable. Knowing after the fact that the input was truncated is worthwhile when auditing incoming data and when converting to a different format (cf. https://github.com/beacon-biosignals/OndaEDF.jl/issues/59).

Some ways to go about this:

There are probably other ways too.