summaryrefslogtreecommitdiff
path: root/numpy/core/ma.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r--numpy/core/ma.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py
index 0d6bf503c..26631693b 100644
--- a/numpy/core/ma.py
+++ b/numpy/core/ma.py
@@ -298,6 +298,7 @@ class masked_unary_operation:
self.fill = fill
self.domain = domain
self.__doc__ = getattr(aufunc, "__doc__", str(aufunc))
+ self.__name__ = getattr(aufunc, "__name__", str(aufunc))
ufunc_domain[aufunc] = domain
ufunc_fills[aufunc] = fill,
@@ -342,6 +343,7 @@ class domained_binary_operation:
self.fillx = fillx
self.filly = filly
self.__doc__ = getattr(abfunc, "__doc__", str(abfunc))
+ self.__name__ = getattr(abfunc, "__name__", str(abfunc))
ufunc_domain[abfunc] = domain
ufunc_fills[abfunc] = fillx,filly