[Numpy-tickets] [NumPy] #455: histogram2d crashes if all points are outliers
NumPy
numpy-tickets@scipy....
Sat Feb 17 03:57:21 CST 2007
#455: histogram2d crashes if all points are outliers
----------------------+-----------------------------------------------------
Reporter: npadmana | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: Other | Version: 1.0.1
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
histogram2d crashes if all the points are outliers -- the issue appears to
be that the xy array is empty, resulting in bincount returning a very long
array which exceeds the dimensions of hist.
I think simply protecting that piece of code with an if xy.size > 0 should
solve this problem.
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/455>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list