summaryrefslogtreecommitdiff
path: root/numpy/lib/shape_base.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-03-24 19:16:04 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-03-24 19:16:04 +0000
commit76612bfed9caef1f619c12bdd867b4974e93d8f4 (patch)
treefb31ec0b17563f1314dc4464d5d3e23d95bf840c /numpy/lib/shape_base.py
parent4bd0d90ed1786edf87e7939258026b35099a9a80 (diff)
downloadnumpy-76612bfed9caef1f619c12bdd867b4974e93d8f4.tar.gz
Simplify interfaces. Fix UCHAR bug.
Diffstat (limited to 'numpy/lib/shape_base.py')
-rw-r--r--numpy/lib/shape_base.py4
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: