Skip to content

Commit 6e60eb0

Browse files
committed
fix windows test numerical precision error
1 parent 9646c7b commit 6e60eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mistree/tests/test_coordinates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def test_spherical_2_unit_sphere():
126126
assert y == 1.
127127
assert round(z, 6) == 0.
128128
x, y, z = mist.spherical_2_unit_sphere(45., 45.)
129-
assert x == 0.5
129+
assert round(x, 6) == 0.5
130130
assert round(y, 6) == 0.5
131131
assert round(z, 6) == round(np.sqrt(2.)/2., 6)
132132
x, y, z = mist.spherical_2_unit_sphere(0., 0., units='radians')

0 commit comments

Comments
 (0)