You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get segfaults when using lexsort on character arrays. A lot of my columns in record arrays are string based, so sorting the arrays based on these columns would be really handy.
Here is an example that crashes for me.
C:\wrk\mt\trunk\src\lib\mt\statement\tests>python
Python 2.4.3 - Enthought Edition 1.0.0 (#553, Aug 2 2006, 12:09:59) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Thanks for the test. The argsort for strings and unicode using the merge sort was cut-and-pasted from the code for fixed-size data-types. The length of the string wasn't being used at all correctly for indexing into the array.
Original ticket http://projects.scipy.org/numpy/ticket/298 on 2006-09-28 by trac user ericjones, assigned to unknown.
I've been using the new record arrays and lexsort from numpy quite a lot lately. Very cool stuff.
Using the nightly egg for numpy from here (I believe it is up to date...):
http://code.enthought.com/enstaller/eggs/numpy-nightly-py2.4-win32.egg
I get segfaults when using lexsort on character arrays. A lot of my columns in record arrays are string based, so sorting the arrays based on these columns would be really handy.
Here is an example that crashes for me.
C:\wrk\mt\trunk\src\lib\mt\statement\tests>python
Python 2.4.3 - Enthought Edition 1.0.0 (#553, Aug 2 2006, 12:09:59) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
thanks,
eric
The text was updated successfully, but these errors were encountered: