diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2013-12-20 16:35:00 +0100 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2013-12-20 16:43:11 +0100 |
commit | c91b4c3703eef84eca84063994d07332020c7707 (patch) | |
tree | de60bf6d9d7c77c243ac48ab934873f054a9e1ff /numpy/polynomial/polyutils.py | |
parent | 056ab73e567b8dae84055108dee6166d637baa57 (diff) | |
download | numpy-c91b4c3703eef84eca84063994d07332020c7707.tar.gz |
BUG: Fix array_split empty array type and add FutureWarning
Fixes the result type of empty output arrays.
The FutureWarning warns about changed behaviour. A "kludge" was
introduced into array split converting converting the result of
something like:
>>> np.array_split(np.array([[1, 1]]), 2)
[array([[1, 1]]), array([], dtype=int64)]
instead of retaining the shape of the empty/second array to
be (0, 2). A FutureWarning is now raised when such a
replacement occurs.
Closes gh-612
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions