Skip to content

Commit debd4db

Browse files
committed
fix: Missing positional arguments "length", "byteorder" in call to "to_bytes"
1 parent 7348553 commit debd4db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mapillary_tools/geotag/gpmf_parser.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,10 @@ def gps9_from_stream(
277277

278278
try:
279279
sample_parser = C.Sequence(
280-
*[_type_mapping[t.to_bytes()][0] for t in gps_value_types]
280+
*[
281+
_type_mapping[t.to_bytes(length=1, byteorder="big")][0]
282+
for t in gps_value_types
283+
]
281284
)
282285
except Exception as ex:
283286
raise ValueError(f"Error parsing the complex type {gps_value_types}: {ex}")

0 commit comments

Comments
 (0)