Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
comments
  • Loading branch information
ptpt committed Mar 26, 2025
commit f8cc4085d60d9b22660d323a481ab7d91482722b
4 changes: 4 additions & 0 deletions mapillary_tools/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ def zip_sequence_fp(
sequence: T.Sequence[types.ImageMetadata],
zip_fp: T.IO[bytes],
) -> str:
"""
Write a sequence of ImageMetadata into the zipfile handle.
The sequence has to be one sequence and sorted.
"""
sequence_groups = types.group_and_sort_images(sequence)
assert len(sequence_groups) == 1, (
f"Only one sequence is allowed but got {len(sequence_groups)}: {list(sequence_groups.keys())}"
Expand Down
Loading