Skip to content

Commit

Permalink
Allow the use of compressed image in "picture_arrays" event (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaamb authored Nov 21, 2024
1 parent 1d37b80 commit 152845a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ouranos/aggregator/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,9 @@ async def picture_arrays(
await dir_path.mkdir(parents=True, exist_ok=True)
for serialized_image in serialized_images.data:
serialized_image: SerializableImage
# Uncompress array if needed
if serialized_image.is_compressed:
serialized_image = serialized_image.uncompress()
# Get information
camera_uid = serialized_image.metadata.pop("camera_uid")
timestamp = datetime.fromisoformat(serialized_image.metadata.pop("timestamp"))
Expand Down

0 comments on commit 152845a

Please sign in to comment.