diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2019-04-14 12:18:12 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2019-04-14 13:00:03 -0700 |
commit | b24060e5787b5fff80f855fa105e91d989e1ca6c (patch) | |
tree | 1362cb21d8222a56866f3c24fdb520f1a0698a9a /numpy/lib/tests/test_function_base.py | |
parent | fb425b769bbe4ff4b5a28f58876871414cc8bb12 (diff) | |
download | numpy-b24060e5787b5fff80f855fa105e91d989e1ca6c.tar.gz |
MAINT: Tidy up error message for accumulate and reduceat
This makes `np.add.accumulate(0, axis=())` match `np.add.accumulate(0)` - both now give `TypeError: cannot accumulate on a scalar`.
This also fixes an LGTM complaing about `naxes == 1` being always false due to the line before it that sets `naxes = 0`.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions