summaryrefslogtreecommitdiff
path: root/numpy/dual.py
diff options
context:
space:
mode:
authorWarren Weckesser <warren.weckesser@gmail.com>2020-05-04 19:04:20 -0400
committerWarren Weckesser <warren.weckesser@gmail.com>2020-05-04 19:07:27 -0400
commite95fcba32f123dc3ea6e23f533fedf5aee64815e (patch)
treec2e7750ebb1950373fb14a41ed36eeacf41bbd21 /numpy/dual.py
parent30bf46c0538266ade0ac0e1a18486a226196b738 (diff)
downloadnumpy-e95fcba32f123dc3ea6e23f533fedf5aee64815e.tar.gz
DEP: Deprecate `numpy.dual`.
Add a deprecation warning in the `numpy.dual` module, and remove the use of `numpy.dual` from the few places where it is used in the numpy code.
Diffstat (limited to 'numpy/dual.py')
-rw-r--r--numpy/dual.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/dual.py b/numpy/dual.py
index 92afec52d..9200a054e 100644
--- a/numpy/dual.py
+++ b/numpy/dual.py
@@ -10,6 +10,14 @@ NumPy.
.. _Scipy : https://www.scipy.org
"""
+import warnings
+
+
+warnings.warn('The module numpy.dual is deprecated. Instead of using dual, '
+ 'use the functions directly from numpy or scipy.',
+ category=DeprecationWarning,
+ stacklevel=2)
+
# This module should be used for functions both in numpy and scipy if
# you want to use the numpy version if available but the scipy version
# otherwise.