-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
While applying the klvdata module to some test data, I came across an Value error originating here:
Line 117 in 246d8fe
| raise ValueError |
After a while I realized that the min/max values for 16bit integer where implemented in the code as -32767/32767, however, they should be -32768/32767. In my case an entry had the value -32768 and thus caused an error during parsing.
If I am correct, the following line (and alike) should be modified:
Line 133 in 246d8fe
| _domain = (-(2**15-1), 2**15-1) |
... instead it should look like:
_domain = ((-2**15 - 1), 2**15 - 1)
After adjusting all of these occurrences in the file, the parsing of my files was successful.
best regards
Alex
Metadata
Metadata
Assignees
Labels
No labels