mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-18 12:40:14 +08:00
Merge pull request #1151 from blink1073/default_fallback_doc
Use functools.wraps in default_fallback decorator Fixes #1149, allowing functions wrapped by `default_fallback` to keep their docstring.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import numpy as np
|
||||
import functools
|
||||
import scipy.ndimage as nd
|
||||
from .selem import _default_selem
|
||||
|
||||
@@ -31,7 +32,7 @@ def default_fallback(func):
|
||||
If the image dimentionality is greater than 2D, the ndimage
|
||||
function is returned, otherwise skimage function is used.
|
||||
"""
|
||||
|
||||
@functools.wraps(func)
|
||||
def func_out(image, selem=None, out=None, **kwargs):
|
||||
# Default structure element
|
||||
if selem is None:
|
||||
|
||||
Reference in New Issue
Block a user