Adds Virtual Tennis Tutorial #461
+574
−2
Draft
Cirrus CI / Linux pypy:3.7-slim
failed
Dec 10, 2023 in 2m 6s
Task Summary
Instruction main failed in 00:49
Details
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks
✅ 00:00 clone
✅ 01:13 install
❌ 00:49 main
assume(cam.left != cam.right)
assume(cam.top != cam.bottom)
note(f"point: {point}")
point_frame = cam.translate_point_to_screen(point)
note(f"point->frame: {point_frame}")
point_viewport = cam.translate_point_to_game_space(point_frame)
note(f"point->frame->viewport: {point_viewport}")
assert point_viewport.isclose(point, rel_tol=1e-5, rel_to=[cam.position])
point_viewport = cam.translate_point_to_game_space(point)
note(f"point->viewport: {point_viewport}")
point_frame = cam.translate_point_to_screen(point_viewport)
note(f"point->viewport->frame: {point_frame}")
> assert point_frame.isclose(point, rel_tol=1e-5, rel_to=[cam.position])
E assert False
E + where False = <bound method Vector.isclose of Vector(0.0, 0.9999847412109375)>(Vector(0.0, 1.0), rel_tol=1e-05, rel_to=[Vector(0.0, 0.0)])
E + where <bound method Vector.isclose of Vector(0.0, 0.9999847412109375)> = Vector(0.0, 0.9999847412109375).isclose
E Falsifying example: test_transformation_roundtrip(
E vp_width=3,
E vp_height=618474635264,
E target_width=1.0,
E cam_pos=Vector(0.0, 0.0),
E point=Vector(0.0, 1.0),
E )
E frame: (-0.5, -103079105877.33333) -> (0.5, 103079105877.33333)
E point: Vector(0.0, 1.0)
E point->frame: Vector(1.5, 309237317629.0)
E point->frame->viewport: Vector(0.0, 1.0)
E point->viewport: Vector(-0.5, 103079105877.0)
E point->viewport->frame: Vector(0.0, 0.9999847412109375)
E
E You can reproduce this example by temporarily adding @reproduce_failure('6.79.4', b'AXicY2BgYWZkYGCU///6/z8GOGBkIB4wAgDqWAQS') as a decorator on your test case
tests/test_camera.py:179: AssertionError
=========================== short test summary info ============================
FAILED tests/test_camera.py::test_transformation_roundtrip - assert False
+ where False = <bound method Vector.isclose of Vector(0.0, 0.9999847412109375)>(Vector(0.0, 1.0), rel_tol=1e-05, rel_to=[Vector(0.0, 0.0)])
+ where <bound method Vector.isclose of Vector(0.0, 0.9999847412109375)> = Vector(0.0, 0.9999847412109375).isclose
Falsifying example: test_transformation_roundtrip(
vp_width=3,
vp_height=618474635264,
target_width=1.0,
cam_pos=Vector(0.0, 0.0),
point=Vector(0.0, 1.0),
)
frame: (-0.5, -103079105877.33333) -> (0.5, 103079105877.33333)
point: Vector(0.0, 1.0)
point->frame: Vector(1.5, 309237317629.0)
point->frame->viewport: Vector(0.0, 1.0)
point->viewport: Vector(-0.5, 103079105877.0)
point->viewport->frame: Vector(0.0, 0.9999847412109375)
You can reproduce this example by temporarily adding @reproduce_failure('6.79.4', b'AXicY2BgYWZkYGCU///6/z8GOGBkIB4wAgDqWAQS') as a decorator on your test case
======================== 1 failed, 388 passed in 46.27s ========================
Loading