[Numpy-tickets] [NumPy] #632: numpy.histogram fails with bin=<list>
NumPy
numpy-tickets@scipy....
Tue Feb 5 14:37:55 CST 2008
#632: numpy.histogram fails with bin=<list>
-----------------------+----------------------------------------------------
Reporter: orbeckst | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0.5
Component: numpy.lib | Version: none
Severity: normal | Resolution:
Keywords: histogram |
-----------------------+----------------------------------------------------
Comment (by dharland):
The message summary is not strictly correct. numpy.histogram fails in all
cases that bins are specified, be it as a list or an array.
Further, the suggested change in the initial comment isn't quite enough
... bins should be explicitly cast to an array as further parts of the
function also try to invoke array methods on them (eg if normed=1)
Patch file added to ticket in function_base.py.patch.
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/632#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list