diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-03-24 19:16:04 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-03-24 19:16:04 +0000 |
commit | 76612bfed9caef1f619c12bdd867b4974e93d8f4 (patch) | |
tree | fb31ec0b17563f1314dc4464d5d3e23d95bf840c /numpy/lib/shape_base.py | |
parent | 4bd0d90ed1786edf87e7939258026b35099a9a80 (diff) | |
download | numpy-76612bfed9caef1f619c12bdd867b4974e93d8f4.tar.gz |
Simplify interfaces. Fix UCHAR bug.
Diffstat (limited to 'numpy/lib/shape_base.py')
-rw-r--r-- | numpy/lib/shape_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index 28ea0b1d3..6ca25ac3c 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -121,7 +121,7 @@ def atleast_1d(*arys): """ res = [] for ary in arys: - res.append(asarray(ary,ndmin=1)) + res.append(array(ary,copy=False,ndmin=1)) if len(res) == 1: return res[0] else: @@ -141,7 +141,7 @@ def atleast_2d(*arys): """ res = [] for ary in arys: - res.append(asarray(ary,ndmin=2)) + res.append(array(ary,copy=False,ndmin=2)) if len(res) == 1: return res[0] else: |