[Numpy-tickets] [NumPy] #225: bincount does not accept input of type > N.uint16

NumPy numpy-tickets at scipy.net
Thu Aug 3 14:02:34 CDT 2006


#225: bincount does not accept input of type > N.uint16
------------------------+---------------------------------------------------
 Reporter:  stefan      |       Owner:  stefan
     Type:  defect      |      Status:  new   
 Priority:  normal      |   Milestone:        
Component:  numpy.core  |     Version:        
 Severity:  normal      |    Keywords:        
------------------------+---------------------------------------------------
 Under r2944:

 {{{
 In [22]: N.bincount(N.array([1],N.uint16))
 Out[22]: array([0, 1])
 }}}

 {{{
 In [23]: N.bincount(N.array([1],N.uint32))
 ---------------------------------------------------------------------------
 exceptions.TypeError                                 Traceback (most
 recent call last)

 /home/stefan/work/scipy/hough/<ipython console>

 TypeError: array cannot be safely cast to required type
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/225>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list