Closed hofaflo closed 6 months ago
There are already tests for invalid month or day in
tests/test_header_field.py
, but we could add some for seconds/minutes/hours?
That's probably not necessary.
This questions might be more relevant when we try to fix broken EDF headers.
Do you mean we could try to reorder day/month/year or hour/minute/second to see if one (and only one) combination is valid?
No, that would go too far. I was just thinking that when/if we implement an auto-fix option, we should re-consider these tolerances when reading. Because what this effectively does is implement an "auto-fix on access" for date fields without actually fixing the EDF file.
There are already tests for invalid month or day in
tests/test_header_field.py
, but we could add some for seconds/minutes/hours?Do you mean we could try to reorder day/month/year or hour/minute/second to see if one (and only one) combination is valid?