summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/ma.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-13 07:15:52 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-13 07:15:52 +0000
commit01a0309eca710b4128df2c9b5ce3a6905281df4b (patch)
tree763d1e30b193a225625cefea5be5d210c02a641f /numpy/oldnumeric/ma.py
parent9584e277a057c490606cd8abb9100962f4676070 (diff)
downloadnumpy-01a0309eca710b4128df2c9b5ce3a6905281df4b.tar.gz
Change default axis argument of average and several masked array functions. Move old behaviors to compatibility layer.
Diffstat (limited to 'numpy/oldnumeric/ma.py')
-rw-r--r--numpy/oldnumeric/ma.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/numpy/oldnumeric/ma.py b/numpy/oldnumeric/ma.py
index c78fcc200..857c554ec 100644
--- a/numpy/oldnumeric/ma.py
+++ b/numpy/oldnumeric/ma.py
@@ -2,4 +2,14 @@
# instead of None
from numpy.core.ma import *
+import numpy.core.ma as nca
+
+def repeat(a, repeats, axis=0):
+ return nca.repeat(a, repeats, axis)
+
+def average(a, axis=0, weights=None, returned=0):
+ return nca.average(a, axis, weights, returned)
+
+def take(a, indices, axis=0):
+ return nca.average(a, indices, axis=0)