mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-25 13:30:51 +08:00
Edit wording of docstrings
This commit is contained in:
@@ -23,7 +23,7 @@ def deprecation_warning(msg, **kwargs):
|
||||
"""Emit deprecation warning for scikit-image.
|
||||
|
||||
Unlike default deprecation warnings, this is not silenced by default.
|
||||
Additional keyword arguments are passed to `warnings.warn_explicit`.
|
||||
Additional keyword arguments are passed to `warnings.warn`.
|
||||
"""
|
||||
warnings.simplefilter('always', skimage_deprecation)
|
||||
warnings.warn(msg, category=skimage_deprecation, **kwargs)
|
||||
|
||||
@@ -157,7 +157,7 @@ def intensity_range(image, range_values='image', zero_min=False):
|
||||
|
||||
zero_min : bool
|
||||
If True, the image dtype's min is truncated to 0. Note that this only
|
||||
applies the output range if `range_values` specifies a dtype.
|
||||
applies to the output range if `range_values` specifies a dtype.
|
||||
"""
|
||||
if range_values == 'dtype':
|
||||
range_values = image.dtype.type
|
||||
|
||||
Reference in New Issue
Block a user