diff options
author | Eric Moore <ewm@redtetrahedron.org> | 2014-10-20 14:06:50 -0400 |
---|---|---|
committer | Eric Moore <ewm@redtetrahedron.org> | 2014-10-20 16:57:50 -0400 |
commit | 270ae2c7cac71c91a52701c5b0eb7e5f6d388b14 (patch) | |
tree | f7946d6b2f5596639b69253901909ad395fc10c8 /numpy/doc/byteswapping.py | |
parent | df9db6ed5f9c9e315993f4efed5dba613e6cd84c (diff) | |
download | numpy-270ae2c7cac71c91a52701c5b0eb7e5f6d388b14.tar.gz |
MAINT: Give a more helpful error for bad axis specifications.
This specifically addresses passing things like axis=[0,1] which
gave an error message that an int was required. The real error
was that if the axis isn't None or a tuple, it was simply wraped
in a tuple, so the ufunc that is eventually called ended up with
a list. The error message is matches that in
core/src/multiarray/conversion_utils.c::PyArray_ConvertMultiAxis.
Diffstat (limited to 'numpy/doc/byteswapping.py')
0 files changed, 0 insertions, 0 deletions