[Numpy-svn] [numpy/numpy] 270ae2: MAINT: Give a more helpful error for bad axis spec...
GitHub
noreply at github.com
Mon Oct 20 17:52:21 EDT 2014
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: 270ae2c7cac71c91a52701c5b0eb7e5f6d388b14
https://github.com/numpy/numpy/commit/270ae2c7cac71c91a52701c5b0eb7e5f6d388b14
Author: Eric Moore <ewm at redtetrahedron.org>
Date: 2014-10-20 (Mon, 20 Oct 2014)
Changed paths:
M numpy/linalg/linalg.py
Log Message:
-----------
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.
Commit: 4ed4aec23912346c00d5ec2850dcd457a048479e
https://github.com/numpy/numpy/commit/4ed4aec23912346c00d5ec2850dcd457a048479e
Author: Jaime <jaime.frio at gmail.com>
Date: 2014-10-20 (Mon, 20 Oct 2014)
Changed paths:
M numpy/linalg/linalg.py
Log Message:
-----------
Merge pull request #5210 from ewmoore/norm_doc
MAINT: more informative error message from linalg.norm
Compare: https://github.com/numpy/numpy/compare/df9db6ed5f9c...4ed4aec23912
More information about the Numpy-svn
mailing list