Adds Virtual Tennis Tutorial #461
Draft
Cirrus CI / Linux python:3.7-slim
failed
Dec 10, 2023 in 1m 1s
Task Summary
Instruction main failed in 00:31
Details
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks
✅ 00:00 clone
✅ 00:27 install
❌ 00:31 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.25097716492320643, 0.0)>(Vector(0.2509746551513677, 0.0), rel_tol=1e-05, rel_to=[Vector(0.0, 0.0)])
E + where <bound method Vector.isclose of Vector(0.25097716492320643, 0.0)> = Vector(0.25097716492320643, 0.0).isclose
E Falsifying example: test_transformation_roundtrip(
E vp_width=137439283369,
E vp_height=1,
E target_width=1.0,
E cam_pos=Vector(0.0, 0.0),
E point=Vector(0.2509746551513677, 0.0),
E )
E frame: (-0.5, -3.637970074811792e-12) -> (0.5, 3.637970074811792e-12)
E point: Vector(0.2509746551513677, 0.0)
E point->frame: Vector(103213418432.28587, 0.5)
E point->frame->viewport: Vector(0.25097465515136763, 0.0)
E point->viewport: Vector(-0.4999999999981739, 3.637970074811792e-12)
E point->viewport->frame: Vector(0.25097716492320643, 0.0)
E
E You can reproduce this example by temporarily adding @reproduce_failure('6.79.4', b'AXicY2ZkYGBwYOASDGBABowMuMABSZD0f2QhAEcRAoo=') 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.25097716492320643, 0.0)>(Vector(0.2509746551513677, 0.0), rel_tol=1e-05, rel_to=[Vector(0.0, 0.0)])
+ where <bound method Vector.isclose of Vector(0.25097716492320643, 0.0)> = Vector(0.25097716492320643, 0.0).isclose
Falsifying example: test_transformation_roundtrip(
vp_width=137439283369,
vp_height=1,
target_width=1.0,
cam_pos=Vector(0.0, 0.0),
point=Vector(0.2509746551513677, 0.0),
)
frame: (-0.5, -3.637970074811792e-12) -> (0.5, 3.637970074811792e-12)
point: Vector(0.2509746551513677, 0.0)
point->frame: Vector(103213418432.28587, 0.5)
point->frame->viewport: Vector(0.25097465515136763, 0.0)
point->viewport: Vector(-0.4999999999981739, 3.637970074811792e-12)
point->viewport->frame: Vector(0.25097716492320643, 0.0)
You can reproduce this example by temporarily adding @reproduce_failure('6.79.4', b'AXicY2ZkYGBwYOASDGBABowMuMABSZD0f2QhAEcRAoo=') as a decorator on your test case
======================== 1 failed, 388 passed in 30.03s ========================
Loading