-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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.
python-rawtools/rawtools/dat.py
Lines 57 to 61 in af28444
| if file_size < minimum_size: | |
| logging.warning(f"Detected possible data corruption. File is smaller than expected '{fp}'. Expected at <{file_size * 2}> bytes but found <{file_size}> bytes. Defaulting to unsigned 16-bit.") | |
| return 'uint16' | |
| else: | |
| logging.warning(f"Unable to determine bit-depth of volume '{fp}'. Expected at <{file_size * 2}> bytes but found <{file_size}> bytes. Defaulting to unsigned 16-bit.") |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working