Removed deprecated _mode_deprecations

This commit is contained in:
Egor Panfilov
2016-06-19 00:25:52 +03:00
parent c3b8f485d3
commit e02ccb6817
5 changed files with 3 additions and 23 deletions
+1 -4
View File
@@ -4,8 +4,7 @@ import numpy as np
from scipy import spatial
from scipy import ndimage as ndi
from .._shared.utils import (get_bound_method_class, safe_as_int,
_mode_deprecations, warn)
from .._shared.utils import (get_bound_method_class, safe_as_int, warn)
from ..util import img_as_float
from ._warps_cy import _warp_fast
@@ -13,7 +12,6 @@ from ._warps_cy import _warp_fast
def _to_ndimage_mode(mode):
"""Convert from `numpy.pad` mode name to the corresponding ndimage mode."""
mode = _mode_deprecations(mode.lower())
mode_translation_dict = dict(edge='nearest', symmetric='reflect',
reflect='mirror')
if mode in mode_translation_dict:
@@ -1286,7 +1284,6 @@ def warp(image, inverse_map=None, map_args={}, output_shape=None, order=1,
>>> warped = warp(cube, coords)
"""
mode = _mode_deprecations(mode)
image = _convert_warp_input(image, preserve_range)
input_shape = np.array(image.shape)