summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/compat.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-04 18:47:25 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-04 18:47:25 +0000
commita9046559ee562323b483ffbb80eb4b4d0cb11d36 (patch)
treed6875105a0c2999d512f853886ae975030016bc0 /numpy/oldnumeric/compat.py
parent7ffd787c0702925a985fedfc0c988059a77c2b61 (diff)
downloadnumpy-a9046559ee562323b483ffbb80eb4b4d0cb11d36.tar.gz
Convert so that axis arguments are consistent for methods and functions. Place functions for which this changes the Numeric default into oldnumeric.
Diffstat (limited to 'numpy/oldnumeric/compat.py')
-rw-r--r--numpy/oldnumeric/compat.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/oldnumeric/compat.py b/numpy/oldnumeric/compat.py
index 0a4b41228..3c8cf9b70 100644
--- a/numpy/oldnumeric/compat.py
+++ b/numpy/oldnumeric/compat.py
@@ -7,7 +7,7 @@ __all__ = ['NewAxis',
'UInt8','UInt16','UInt32', 'UnsignedInt32', 'UnsignedInteger',
# UnsignedInt64 and Unsigned128 added below if possible
# same for Int64 and Int128, Float128, and Complex128
- 'Int8', 'Int16', 'Int32',
+ 'Int8', 'Int16', 'Int32',
'Int0', 'Int', 'Float0', 'Float', 'Complex0', 'Complex',
'PyObject', 'Float32', 'Float64', 'Float16', 'Float8',
'Complex32', 'Complex64', 'Complex8', 'Complex16',
@@ -19,6 +19,7 @@ __all__ = ['NewAxis',
'dump', 'dumps'
]
+
import numpy.core.multiarray as mu
import numpy.core.umath as um
import numpy.core.numerictypes as nt
@@ -38,6 +39,7 @@ multiarray = mu
def sarray(a, dtype=None, copy=False):
return array(a, dtype, copy)
+
#Use this to add a new axis to an array
#compatibility only
NewAxis = None