diff --git a/skimage/draw/tests/test_draw3d.py b/skimage/draw/tests/test_draw3d.py index 26c63cde..14bf140f 100644 --- a/skimage/draw/tests/test_draw3d.py +++ b/skimage/draw/tests/test_draw3d.py @@ -79,8 +79,8 @@ def test_ellipsoid_levelset(): [ 1.25, 0.5 , 0.25, 0.5 , 1.25], [ 2. , 1.25, 1. , 1.25, 2. ]]]] - assert_array_equal(test, expected.astype(bool)) - assert_array_equal(test_anisotropic, expected.astype(bool)) + assert_array_equal(test, expected) + assert_array_equal(test_anisotropic, expected) def test_ellipsoid_stats(): diff --git a/skimage/measure/tests/test_marching_cubes.py b/skimage/measure/tests/test_marching_cubes.py index 991da060..7a1fd40a 100644 --- a/skimage/measure/tests/test_marching_cubes.py +++ b/skimage/measure/tests/test_marching_cubes.py @@ -7,7 +7,7 @@ from skimage.measure import marching_cubes, mesh_surface_area def test_marching_cubes_isotropic(): ellipsoid_isotropic = ellipsoid(6, 10, 16, levelset=True) - _, surf = ellipsoid_stats(6, 10, 16, levelset=True) + _, surf = ellipsoid_stats(6, 10, 16) verts, faces = marching_cubes(ellipsoid_isotropic, 0.) surf_calc = mesh_surface_area(verts, faces) @@ -17,9 +17,9 @@ def test_marching_cubes_isotropic(): def test_marching_cubes_anisotropic(): sampling = (1., 10 / 6., 16 / 6.) - ellipsoid_anisotropic, _, surf = ellipsoid(6, 10, 16, sampling=sampling, - levelset=True) - _, surf = ellipsoid_stats(6, 10, 16, sampling=sampling, levelset=True) + ellipsoid_anisotropic = ellipsoid(6, 10, 16, sampling=sampling, + levelset=True) + _, surf = ellipsoid_stats(6, 10, 16, sampling=sampling) verts, faces = marching_cubes(ellipsoid_anisotropic, 0., sampling=sampling) surf_calc = mesh_surface_area(verts, faces)