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

Unstable doctest geometry/hyperbolic_space/hyperbolic_model.py #32891

Closed
kliem opened this issue Nov 17, 2021 · 9 comments
Closed

Unstable doctest geometry/hyperbolic_space/hyperbolic_model.py #32891

kliem opened this issue Nov 17, 2021 · 9 comments

Comments

@kliem
Copy link
Contributor

kliem commented Nov 17, 2021

Part of #32544:

sage -t --long --random-seed=257293673212457698646690051018428858654 src/sage/geometry/hyperbolic_space/hyperbolic_model.py
**********************************************************************
File "src/sage/geometry/hyperbolic_space/hyperbolic_model.py", line 567, in sage.geometry.hyperbolic_space.hyperbolic_model.HyperbolicModel.random_geodesic
Failed example:
    bool((h.endpoints()[0].coordinates()).imag() >= 0)
Expected:
    True
Got:
    False
**********************************************************************
1 item had failures:
   1 of   3 in sage.geometry.hyperbolic_space.hyperbolic_model.HyperbolicModel.random_geodesic
    [234 tests, 1 failure, 0.77 s]
------------------------------------

CC: @orlitzky @tscrim @sagetrac-jhonrubia6

Component: doctest framework

Author: Michael Orlitzky

Branch/Commit: eddded5

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/32891

@kliem kliem added this to the sage-9.5 milestone Nov 17, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.5, sage-9.6 Dec 18, 2021
@orlitzky
Copy link
Contributor

comment:2

Wild ass guess: this should be testing HyperbolicPlane().UHP() and not HyperbolicPlane().PD(). The former stands for Upper Half Plane, the latter for Poincare Disk.

@tscrim
Copy link
Collaborator

tscrim commented Dec 28, 2021

comment:3

Indeed, that test is only valid for the UHP, but that method is already being tested. Here, we should test that the absolute value is at most 1 to test in the PD model.

@orlitzky
Copy link
Contributor

Branch: u/mjo/ticket/32891

@orlitzky
Copy link
Contributor

Author: Michael Orlitzky

@orlitzky
Copy link
Contributor

New commits:

eddded5Trac #32891: fix a failing hyperbolic model doctest.

@orlitzky
Copy link
Contributor

Commit: eddded5

@tscrim
Copy link
Collaborator

tscrim commented Jan 1, 2022

comment:5

Thank you. LGTM.

@tscrim
Copy link
Collaborator

tscrim commented Jan 1, 2022

Reviewer: Travis Scrimshaw

@vbraun
Copy link
Member

vbraun commented Jan 31, 2022

Changed branch from u/mjo/ticket/32891 to eddded5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants