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:3.7-windowsservercore failed Dec 10, 2023 in 1m 10s

Task Summary

Instruction main failed in 00:50

Details

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

✅ 00:01 clone
✅ 00:16 install
❌ 00:50 main

        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(11258999069.25, 0.0)>(Vector(5629499535.0, 0.0), rel_tol=1e-05, rel_to=[Vector(562949953421313.0, 0.0)])
E        +    where <bound method Vector.isclose of Vector(11258999069.25, 0.0)> = Vector(11258999069.25, 0.0).isclose
E       Falsifying example: test_transformation_roundtrip(
E           vp_width=90071992554,
E           vp_height=1,
E           target_width=1.0,
E           cam_pos=Vector(562949953421313.0, 0.0),
E           point=Vector(5629499535.0, 0.0),
E       )
E       frame: (562949953421312.5, -5.551115122719638e-12) -> (562949953421313.5, 5.551115122719638e-12)
E       point: Vector(5629499535.0, 0.0)
E       point->frame: Vector(-5.070551695259891e+25, 0.5)
E       point->frame->viewport: Vector(5629499535.0, 0.0)
E       point->viewport: Vector(562949953421312.6, 5.551115122719638e-12)
E       point->viewport->frame: Vector(11258999069.25, 0.0)
E       
E       You can reproduce this example by temporarily adding @reproduce_failure('6.79.4', b'AXicY2ZkYGDQ/JgteIkBGYBEGZgQTFRJ/+6IfiQ+AKu/BDM=') as a decorator on your test case

tests\test_camera.py:179: 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(11258999069.25, 0.0)>(Vector(5629499535.0, 0.0), rel_tol=1e-05, rel_to=[Vector(562949953421313.0, 0.0)])
 +    where <bound method Vector.isclose of Vector(11258999069.25, 0.0)> = Vector(11258999069.25, 0.0).isclose
Falsifying example: test_transformation_roundtrip(
    vp_width=90071992554,
    vp_height=1,
    target_width=1.0,
    cam_pos=Vector(562949953421313.0, 0.0),
    point=Vector(5629499535.0, 0.0),
)
frame: (562949953421312.5, -5.551115122719638e-12) -> (562949953421313.5, 5.551115122719638e-12)
point: Vector(5629499535.0, 0.0)
point->frame: Vector(-5.070551695259891e+25, 0.5)
point->frame->viewport: Vector(5629499535.0, 0.0)
point->viewport: Vector(562949953421312.6, 5.551115122719638e-12)
point->viewport->frame: Vector(11258999069.25, 0.0)

You can reproduce this example by temporarily adding @reproduce_failure('6.79.4', b'AXicY2ZkYGDQ/JgteIkBGYBEGZgQTFRJ/+6IfiQ+AKu/BDM=') as a decorator on your test case
================== 1 failed, 388 passed, 1 warning in 48.11s ==================

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