Use functools.wraps in default_fallback dectorator

This commit is contained in:
Steven Silvester
2014-09-13 08:10:14 -05:00
parent e557b92e80
commit 1a1d665c0a
+2 -1
View File
@@ -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: