[bot] Update Python packages (#34140)

* Update Python packages

* pin

* fstring

* this too

---------

Co-authored-by: Vehicle Researcher <user@comma.ai>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
This commit is contained in:
commaci-public
2024-12-04 15:34:54 -08:00
committed by GitHub
parent 8f7bbe4ee3
commit c6e4241bad
19 changed files with 1103 additions and 1015 deletions
+2 -2
View File
@@ -31,11 +31,11 @@ print("got api response")
segments = r.json()[camera]
if segment >= len(segments):
raise Exception("segment %d not found, got %d segments" % (segment, len(segments)))
raise Exception(f"segment {segment} not found, got {len(segments)} segments")
fr = FrameReader(segments[segment])
if frame >= fr.frame_count:
raise Exception("frame %d not found, got %d frames" % (frame, fr.frame_count))
raise Exception("frame {frame} not found, got {fr.frame_count} frames")
im = Image.fromarray(fr.get(frame, count=1, pix_fmt="rgb24")[0])
fn = f"uxxx_{route.replace('|', '_')}_{segment}_{frame}.png"