diff options
author | Tony S Yu <tsyu80@gmail.com> | 2012-04-09 23:01:54 -0400 |
---|---|---|
committer | Tony S Yu <tsyu80@gmail.com> | 2012-04-09 23:01:54 -0400 |
commit | 905335bd9ca4a7126a612b94ac43401b6f03bff7 (patch) | |
tree | 709ec6abd7bebbb34d9017f8d7ec411107c88155 /numpy/lib/shape_base.py | |
parent | b6b5ba1387d754a595838bab4dbdd80f61e0d63e (diff) | |
download | numpy-905335bd9ca4a7126a612b94ac43401b6f03bff7.tar.gz |
DOC: Fix outdated docstring.
Equal and nearly-equal size requirement is not true when passing a 1-D array of indices.
Diffstat (limited to 'numpy/lib/shape_base.py')
-rw-r--r-- | numpy/lib/shape_base.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index b88596ca4..aefc81c2b 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -355,7 +355,7 @@ def _replace_zero_by_x_arrays(sub_arys): def array_split(ary,indices_or_sections,axis = 0): """ - Split an array into multiple sub-arrays of equal or near-equal size. + Split an array into multiple sub-arrays. Please refer to the ``split`` documentation. The only difference between these functions is that ``array_split`` allows @@ -396,17 +396,17 @@ def array_split(ary,indices_or_sections,axis = 0): st = div_points[i]; end = div_points[i+1] sub_arys.append(_nx.swapaxes(sary[st:end],axis,0)) - # there is a wierd issue with array slicing that allows - # 0x10 arrays and other such things. The following cluge is needed + # there is a weird issue with array slicing that allows + # 0x10 arrays and other such things. The following kludge is needed # to get around this issue. sub_arys = _replace_zero_by_x_arrays(sub_arys) - # end cluge. + # end kludge. return sub_arys def split(ary,indices_or_sections,axis=0): """ - Split an array into multiple sub-arrays of equal size. + Split an array into multiple sub-arrays. Parameters ---------- |