mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-03 11:27:45 +08:00
Corrected a grammatical error in deprecated message. No functional change.
This commit is contained in:
@@ -102,7 +102,7 @@ def denoise_bilateral(image, win_size=None, sigma_color=None, sigma_spatial=1,
|
||||
"images.".format(image.shape))
|
||||
|
||||
if sigma_range is not None:
|
||||
warn('`sigma_range` have been deprecated in favor of '
|
||||
warn('`sigma_range` has been deprecated in favor of '
|
||||
'`sigma_color`. The `sigma_range` keyword argument '
|
||||
'will be removed in v0.14', skimage_deprecation)
|
||||
|
||||
|
||||
@@ -218,7 +218,7 @@ def test_denoise_sigma_range():
|
||||
img = np.clip(img, 0, 1)
|
||||
out1 = restoration.denoise_bilateral(img, sigma_color=0.1,
|
||||
sigma_spatial=20, multichannel=False)
|
||||
with expected_warnings('`sigma_range` have been deprecated in favor of `sigma_color`. '
|
||||
with expected_warnings('`sigma_range` has been deprecated in favor of `sigma_color`. '
|
||||
'The `sigma_range` keyword argument will be removed in v0.14'):
|
||||
out2 = restoration.denoise_bilateral(img, sigma_range=0.1,
|
||||
sigma_spatial=20, multichannel=False)
|
||||
@@ -231,7 +231,7 @@ def test_denoise_sigma_range_and_sigma_color():
|
||||
img = np.clip(img, 0, 1)
|
||||
out1 = restoration.denoise_bilateral(img, sigma_color=0.1,
|
||||
sigma_spatial=20, multichannel=False)
|
||||
with expected_warnings('`sigma_range` have been deprecated in favor of `sigma_color`. '
|
||||
with expected_warnings('`sigma_range` has been deprecated in favor of `sigma_color`. '
|
||||
'The `sigma_range` keyword argument will be removed in v0.14'):
|
||||
out2 = restoration.denoise_bilateral(img, sigma_color=0.2, sigma_range=0.1,
|
||||
sigma_spatial=20, multichannel=False)
|
||||
|
||||
Reference in New Issue
Block a user