Skip to content

Commit

Permalink
Loosened tolerances on _test_get_set_minimal_bounding_sphere_radius
Browse files Browse the repository at this point in the history
  • Loading branch information
janbridley committed Feb 13, 2023
1 parent 2df65c0 commit 52533ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,11 @@ def _test_get_set_minimal_bounding_sphere_radius(shape, centered=False):
bounding_sphere = getattr(shape, attr)
bounding_sphere_radius = getattr(shape, attr + "_radius")

assert np.isclose(bounding_sphere_radius, bounding_sphere.radius)
assert np.isclose(bounding_sphere_radius, bounding_sphere.radius, atol=1e-7)
setattr(shape, attr + "_radius", bounding_sphere_radius * 2)
assert np.isclose(getattr(shape, attr).radius, bounding_sphere_radius * 2)
assert np.isclose(
getattr(shape, attr).radius, bounding_sphere_radius * 2, atol=1e-7
)


# Generate the shapes from :cite:`Damasceno2012a`. Use the raw shape dicts to
Expand Down

0 comments on commit 52533ec

Please sign in to comment.