summaryrefslogtreecommitdiff
path: root/numpy/f2py/docs/pytest.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2013-12-20 16:35:00 +0100
committerSebastian Berg <sebastian@sipsolutions.net>2013-12-20 16:43:11 +0100
commitc91b4c3703eef84eca84063994d07332020c7707 (patch)
treede60bf6d9d7c77c243ac48ab934873f054a9e1ff /numpy/f2py/docs/pytest.py
parent056ab73e567b8dae84055108dee6166d637baa57 (diff)
downloadnumpy-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/f2py/docs/pytest.py')
0 files changed, 0 insertions, 0 deletions