diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-09-02 11:02:52 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-09-02 11:02:52 -0500 |
commit | 22d0b20fd096348bd74e30669ce19fefb73554f8 (patch) | |
tree | 100b31a4cd7f96d9dd36e6c3cf7b71c795075911 /numpy/lib/function_base.py | |
parent | db866874ccb8c8c814df57eb1edca4fd05eb1753 (diff) | |
download | numpy-22d0b20fd096348bd74e30669ce19fefb73554f8.tar.gz |
BUG: Fix dimension discovery of within array ragged cases
When `np.array(...)` finds a shape mismatch while inspecting
an array (or array-like), the current logic is to use only
part of those dimensions (as many as possible).
This case was buggy in the new code, and is now fixed.
In general, we may want to change the logic here, e.g. to
always strip all dimensions of that array (allowing an object
array of arrays), but there are some corner cases where the
current behaviour somewhat "works", so this fixes a bug while
gh-17224 and the issues around it remain independently.
Diffstat (limited to 'numpy/lib/function_base.py')
0 files changed, 0 insertions, 0 deletions