diff options
Diffstat (limited to 'numpy/ma/extras.py')
-rw-r--r-- | numpy/ma/extras.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py index 02bfa3cca..0f0d504c5 100644 --- a/numpy/ma/extras.py +++ b/numpy/ma/extras.py @@ -48,7 +48,7 @@ import numpy.core.umath as umath from numpy.lib.index_tricks import AxisConcatenator from numpy.linalg import lstsq -from numpy.lib.utils import deprecate_with_doc +from numpy.lib.utils import deprecate #............................................................................... def issequence(seq): @@ -1173,7 +1173,7 @@ def setdiff1d(ar1, ar2, assume_unique=False): else: return ma.asarray(ar1)[aux == 0] -@deprecate_with_doc('') +@deprecate def unique1d(ar1, return_index=False, return_inverse=False): """ This function is deprecated. Use ma.unique() instead. """ output = np.unique1d(ar1, @@ -1187,7 +1187,7 @@ def unique1d(ar1, return_index=False, return_inverse=False): output = output.view(MaskedArray) return output -@deprecate_with_doc('') +@deprecate def intersect1d_nu(ar1, ar2): """ This function is deprecated. Use ma.intersect1d() instead.""" # Might be faster than unique1d( intersect1d( ar1, ar2 ) )? @@ -1195,7 +1195,7 @@ def intersect1d_nu(ar1, ar2): aux.sort() return aux[aux[1:] == aux[:-1]] -@deprecate_with_doc('') +@deprecate def setmember1d(ar1, ar2): """ This function is deprecated. Use ma.in1d() instead.""" ar1 = ma.asanyarray(ar1) |