You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
While applying the klvdata module to some test data, I came across an Value error originating here:
klvdata/klvdata/common.py
Line 117 in 246d8fe
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:
klvdata/klvdata/misb0601.py
Line 133 in 246d8fe
... 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
The text was updated successfully, but these errors were encountered: