While applying the klvdata module to some test data, I came across an Value error originating here:
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:
|
_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
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