Skip to content

Commit 52533ec

Browse files
committed
Loosened tolerances on _test_get_set_minimal_bounding_sphere_radius
1 parent 2df65c0 commit 52533ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,11 @@ def _test_get_set_minimal_bounding_sphere_radius(shape, centered=False):
310310
bounding_sphere = getattr(shape, attr)
311311
bounding_sphere_radius = getattr(shape, attr + "_radius")
312312

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

317319

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

0 commit comments

Comments
 (0)