mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-09 11:33:41 +08:00
Removed deprecated _mode_deprecations
This commit is contained in:
@@ -167,17 +167,6 @@ def assert_nD(array, ndim, arg_name='image'):
|
||||
raise ValueError(msg % (arg_name, '-or-'.join([str(n) for n in ndim])))
|
||||
|
||||
|
||||
def _mode_deprecations(mode):
|
||||
"""Used to update deprecated mode names in
|
||||
`skimage._shared.interpolation.pyx`."""
|
||||
if mode.lower() == 'nearest':
|
||||
warn(skimage_deprecation(
|
||||
"Mode 'nearest' has been renamed to 'edge'. Mode 'nearest' will be "
|
||||
"removed in a future release."))
|
||||
mode = 'edge'
|
||||
return mode
|
||||
|
||||
|
||||
def copy_func(f, name=None):
|
||||
"""Create a copy of a function.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user