diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-06-09 21:44:06 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-06-10 16:30:10 -0600 |
commit | a9a470c841eeb5f0fb2c2ae9639f6c2833f03d00 (patch) | |
tree | 096b749d7857c78677e6222eb8fadad5b7cfccd7 /numpy/oldnumeric/__init__.py | |
parent | 75cdf3d82e96e4fb605f3b0ea85961bbc24e70d8 (diff) | |
download | numpy-a9a470c841eeb5f0fb2c2ae9639f6c2833f03d00.tar.gz |
DEP: Deprecate the oldnumeric and numarray modules.
The numarray and oldnumeric modules are deprecated. This is a bit tricky
as raising a DeprecationWarning on import causes an error when tests are
run. To deal with that, a ModuleDeprecationWarning class is added to
numpy and NoseTester is modified to ignore that warning during testing.
Closes #2905
Diffstat (limited to 'numpy/oldnumeric/__init__.py')
-rw-r--r-- | numpy/oldnumeric/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/oldnumeric/__init__.py b/numpy/oldnumeric/__init__.py index cf34b8300..86cdf55f7 100644 --- a/numpy/oldnumeric/__init__.py +++ b/numpy/oldnumeric/__init__.py @@ -3,8 +3,14 @@ """ from __future__ import division, absolute_import, print_function +import warnings + from numpy import * +_msg = "The oldnumeric module will be dropped in Numpy 1.9" +warnings.warn(_msg, ModuleDeprecationWarning) + + def _move_axis_to_0(a, axis): if axis == 0: return a |