[Numpy-tickets] [NumPy] #566: lexsort fails to completely sort

NumPy numpy-tickets@scipy....
Fri Aug 10 14:08:43 CDT 2007


#566: lexsort fails to completely sort
---------------------------+------------------------------------------------
 Reporter:  hattawayd      |        Owner:  somebody     
     Type:  defect         |       Status:  new          
 Priority:  normal         |    Milestone:  1.0.3 Release
Component:  numpy.core     |      Version:  devel        
 Severity:  major          |   Resolution:               
 Keywords:  lexsort 1.0.3  |  
---------------------------+------------------------------------------------
Comment (by charris):

 What is the result supposed to be? Have you remembered to sort the keys in
 reverse order? Try


 {{{
 lexKeys = [numa[:,3-c] for c in xrange(4)]
 }}}


 and see if that is what you want.

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


More information about the Numpy-tickets mailing list