diff options
author | Ryan <50784910+rlintott@users.noreply.github.com> | 2020-05-16 07:59:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 09:59:50 -0500 |
commit | 3ba84d2fedf30aba7d47f81e36bbf265745c4e1c (patch) | |
tree | 59dd79894caeb579502b3ff7412130211fa674a3 /numpy/core/fromnumeric.py | |
parent | 50ce0fce70cac779919d97578381a9d762f42594 (diff) | |
download | numpy-3ba84d2fedf30aba7d47f81e36bbf265745c4e1c.tar.gz |
BUG: numpy.einsum indexing arrays now accept numpy int type (gh-16080)
* Using PyArray_PyIntAsIntp helper function instead
* TST: add tests for einsum numpy int and bool list subscripts
Added tests to check that einsum accepts numpy int64 types and
rejects bool. Rejecting bools is new behaviour in subscript lists.
I changed ValueError to TypeError on line 2496 in multiarraymodule.c
as it is more appropriate. I also modified einsumfunc.py to have the
same behaviour as in the C file when checking subscript list.
(Reject bools but accept anything else from operator.index())
Closes gh-15961
Diffstat (limited to 'numpy/core/fromnumeric.py')
0 files changed, 0 insertions, 0 deletions