diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-10-30 13:27:51 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-10-30 14:15:34 -0600 |
commit | f0c9703bd4bbc8d31c6ef5d94c141ec766f33dbc (patch) | |
tree | 309e72836c8fc37f657e2825da27d0b6dbd89531 /numpy/core/function_base.py | |
parent | f428bce78c576f9f3d8f17f49b83a3c6f196bef3 (diff) | |
download | numpy-f0c9703bd4bbc8d31c6ef5d94c141ec766f33dbc.tar.gz |
DEP: Remove FutureWarning from np.lib.split and go to future.
Previously an empty array resulting from split always had dimension 1-D.
In Numpy 1.9 a FutureWarning was raised to notify users that it was
planned to preserve the dimensions of empty arrays in a future numpy
release. This removes the FutureWarning and implements preservation of
dimensions.
Note that there was a bug in numpy 1.9 and the dimensions of empty
arrays was already preserved in some cases and no warning was issued.
This PR fixes that inconsistency by preserving the dimensions in all
cases rather than fixing the bug, as the dimension preserving behavior
was already depended on by some users. See the discussion in gh-6575
about this change.
Diffstat (limited to 'numpy/core/function_base.py')
0 files changed, 0 insertions, 0 deletions