Corrected a grammatical error in deprecated message. No functional change.

This commit is contained in:
Pradyumna Narayana
2016-03-04 09:29:32 -07:00
parent 010df48453
commit 16ed4ed865
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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)
+2 -2
View File
@@ -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)