[Scipy-tickets] [SciPy] #1162: Allow int64 index type in sum() of measurements.py

SciPy Trac scipy-tickets@scipy....
Wed Apr 21 20:30:48 CDT 2010


#1162: Allow int64 index type in sum() of measurements.py
---------------------------+------------------------------------------------
 Reporter:  lmwang         |       Owner:  somebody    
     Type:  defect         |      Status:  needs_review
 Priority:  normal         |   Milestone:  0.8.0       
Component:  scipy.ndimage  |     Version:              
 Keywords:                 |  
---------------------------+------------------------------------------------
Changes (by lmwang):

  * status:  new => needs_review


Comment:

 Apparently the fix is easy:
 {{{
     if T not in [numpy.int8, numpy.int16, numpy.int32, numpy.int64,
         numpy.uint8, numpy.uint16, numpy.bool]:
     raise ValueError("Invalid index type")
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1162#comment:2>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list