Tweak range definition in rescale_intensity

This commit is contained in:
Tony S Yu
2014-06-17 23:08:02 -05:00
parent df7a7eeb6b
commit 9b110d6c6e
2 changed files with 79 additions and 25 deletions
+10
View File
@@ -19,6 +19,16 @@ class skimage_deprecation(Warning):
pass
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`.
"""
warnings.simplefilter('always', skimage_deprecation)
warnings.warn(msg, category=skimage_deprecation, **kwargs)
class deprecated(object):
"""Decorator to mark deprecated functions with warning.