[Scipy-tickets] [SciPy] #412: Broken Py_Statistics indexing

SciPy scipy-tickets@scipy....
Sat May 5 08:17:18 CDT 2007


#412: Broken Py_Statistics indexing
---------------------------+------------------------------------------------
 Reporter:  stefan         |       Owner:  stefan       
     Type:  defect         |      Status:  new          
 Priority:  normal         |   Milestone:  0.5.3 Release
Component:  scipy.ndimage  |     Version:  devel        
 Severity:  normal         |    Keywords:               
---------------------------+------------------------------------------------
 Py_Statistics makes use of labels and indices.  The labels can be of any
 type, but the indices are forced to be of type long in the C-code.  This
 isn't necessary, since we only need to compare labels and indices.

 Fix in nd_image.c (Remove call is to NI_GetIndices, which in turn calls
 NI_ObjectToLongSequence.  Fix NI_Statistics in ni_measure.c to accept
 PyArrayObject* indices instead of maybelong* indices). Remove temporary
 hack in measurements.py for sum.

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


More information about the Scipy-tickets mailing list