The reported expected file sizes is incorrect. It reports double the actual size instead of double the minimum size (uint8). The check for filesize < minimum_size should be checking for its double because it should be assuming uint16 instead of the uint8 that's stored in minimize_size.
The reported expected file sizes is incorrect. It reports double the actual size instead of double the minimum size (uint8). The check for
filesize < minimum_size
should be checking for its double because it should be assuming uint16 instead of the uint8 that's stored inminimize_size
.https://github.com/Topp-Roots-Lab/python-rawtools/blob/af284445182c3a8dfaace4b83586b803b2a70f47/rawtools/dat.py#L57-L61