Optionally surface exceptions that happen under executors by reading
[python_utils.git] / camera_utils.py
index 799efd35d19fa39a7879c6c0851f9e697704927b..d2c50ddf314d96402f885c10c6c79081569ca2c1 100644 (file)
@@ -56,7 +56,8 @@ def sanity_check_image(hsv: np.ndarray) -> SanityCheckImageMetadata:
                 hs_zero_count += 1
     logger.debug(f"hszero#={hs_zero_count}, weird_orange={weird_orange_count}")
     return SanityCheckImageMetadata(
-        hs_zero_count > (num_pixels * 0.75), weird_orange_count > (num_pixels * 0.75)
+        hs_zero_count > (num_pixels * 0.75),
+        weird_orange_count > (num_pixels * 0.75),
     )