Topp-Roots-Lab / python-rawtools

Utility library for consuming and manipulating x-ray volume data in .raw format.
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Incorrect Reported Expected Values #11

Closed tparkerd closed 4 years ago

tparkerd commented 4 years ago

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.

https://github.com/Topp-Roots-Lab/python-rawtools/blob/af284445182c3a8dfaace4b83586b803b2a70f47/rawtools/dat.py#L57-L61