Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Virtual Tennis Tutorial #461

Draft
wants to merge 13 commits into
base: canon
Choose a base branch
from

Update docs/tutorials/virtual-tennis/index.rst

8fd6133
Select commit
Loading
Failed to load commit list.
Draft

Adds Virtual Tennis Tutorial #461

Update docs/tutorials/virtual-tennis/index.rst
8fd6133
Select commit
Loading
Failed to load commit list.
Cirrus CI / Windows python:rc-windowsservercore completed Dec 10, 2023 in 1m 19s

Task Summary

Instruction main failed in 01:02

Details

ℹ️ Scheduling was delayed due to a concurrency limit on community tasks

✅ 00:01 clone
✅ 00:13 install
❌ 01:02 main

    
        # Some underflow/loss of precision problems
        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])
E       assert False
E        +  where False = <bound method Vector.isclose of Vector(0.0, 7.62939453125e-06)>(Vector(0.0, 7.631257176399231e-06), rel_tol=1e-05, rel_to=[Vector(0.0, 0.0)])
E        +    where <bound method Vector.isclose of Vector(0.0, 7.62939453125e-06)> = Vector(0.0, 7.62939453125e-06).isclose
E       Falsifying example: test_transformation_roundtrip(
E           vp_width=1,
E           vp_height=33554433,
E           target_width=1.0,  # or any other generated value
E           cam_pos=Vector(0.0, 0.0),
E           point=Vector(0.0, 7.631257176399231e-06),
E       )
E       frame: (-0.5, -16777216.5) -> (0.5, 16777216.5)
E       point: Vector(0.0, 7.631257176399231e-06)
E       point->frame: Vector(0.5, 16777216.49999237)
E       point->frame->viewport: Vector(0.0, 7.62939453125e-06)
E       
E       You can reproduce this example by temporarily adding @reproduce_failure('6.92.0', b'AXicY2BgYGZkAAIWBmTAyEAEOAgmORgACHgA0w==') as a decorator on your test case

tests\test_camera.py:173: AssertionError
============================== warnings summary ===============================
..\..\..\..\..\..\Python\lib\site-packages\sdl2\_internal.py:24
  C:\Python\lib\site-packages\sdl2\_internal.py:24: UserWarning: Using SDL2 binaries from pysdl2-dll 2.28.4
    warnings.warn(msg, warntype)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ===========================
FAILED tests/test_camera.py::test_transformation_roundtrip - assert False
 +  where False = <bound method Vector.isclose of Vector(0.0, 7.62939453125e-06)>(Vector(0.0, 7.631257176399231e-06), rel_tol=1e-05, rel_to=[Vector(0.0, 0.0)])
 +    where <bound method Vector.isclose of Vector(0.0, 7.62939453125e-06)> = Vector(0.0, 7.62939453125e-06).isclose
Falsifying example: test_transformation_roundtrip(
    vp_width=1,
    vp_height=33554433,
    target_width=1.0,  # or any other generated value
    cam_pos=Vector(0.0, 0.0),
    point=Vector(0.0, 7.631257176399231e-06),
)
frame: (-0.5, -16777216.5) -> (0.5, 16777216.5)
point: Vector(0.0, 7.631257176399231e-06)
point->frame: Vector(0.5, 16777216.49999237)
point->frame->viewport: Vector(0.0, 7.62939453125e-06)

You can reproduce this example by temporarily adding @reproduce_failure('6.92.0', b'AXicY2BgYGZkAAIWBmTAyEAEOAgmORgACHgA0w==') as a decorator on your test case
================== 1 failed, 388 passed, 1 warning in 59.13s ==================

C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build>if 1 NEQ 0 exit /b 1