mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 17:31:50 +08:00
MC: small tweaks from reviewer comments
This commit is contained in:
@@ -255,7 +255,7 @@ def correct_mesh_orientation(volume, verts, faces, spacing=(1., 1., 1.),
|
||||
|
||||
"""
|
||||
warn(DeprecationWarning("`correct_mesh_orientation` is deprecated for "
|
||||
"removal as `marching_cubes`_classic now "
|
||||
"removal as `marching_cubes_classic` now "
|
||||
"guarantees correct mesh orientation."))
|
||||
|
||||
verts = verts.copy()
|
||||
|
||||
@@ -17,7 +17,7 @@ from . import _marching_cubes_lewiner_cy
|
||||
from .._shared.utils import skimage_deprecation, warn
|
||||
|
||||
|
||||
def expected_output_args():
|
||||
def _expected_output_args():
|
||||
""" Get number of expected output args.
|
||||
|
||||
Please don't use this to influence the algorithmic bahaviour of a function.
|
||||
@@ -129,7 +129,7 @@ def marching_cubes(volume, level=None, spacing=(1., 1., 1.),
|
||||
|
||||
# This signature (output args) of this func changed after 0.12
|
||||
try:
|
||||
nout = expected_output_args()
|
||||
nout = _expected_output_args()
|
||||
except Exception:
|
||||
nout = 0
|
||||
if nout <= 2:
|
||||
|
||||
@@ -6,7 +6,7 @@ from skimage.draw import ellipsoid, ellipsoid_stats
|
||||
from skimage.measure import (marching_cubes,
|
||||
marching_cubes_classic, marching_cubes_lewiner,
|
||||
mesh_surface_area, correct_mesh_orientation)
|
||||
from skimage.measure._marching_cubes_lewiner import expected_output_args
|
||||
from skimage.measure._marching_cubes_lewiner import _expected_output_args
|
||||
|
||||
|
||||
def test_expected_output_args():
|
||||
@@ -14,7 +14,7 @@ def test_expected_output_args():
|
||||
res = []
|
||||
|
||||
def foo():
|
||||
nout = expected_output_args()
|
||||
nout = _expected_output_args()
|
||||
print(nout)
|
||||
res.append(nout)
|
||||
return [nout] * int(nout)
|
||||
|
||||
Reference in New Issue
Block a user