[NumPy-Tickets] [NumPy] #2063: unique() does not seem to return correct index if array larger than 16
NumPy Trac
numpy-tickets@scipy....
Thu Jul 26 10:26:43 CDT 2012
#2063: unique() does not seem to return correct index if array larger than 16
-------------------------+--------------------------------------------------
Reporter: lolowizard | Owner: somebody
Type: defect | Status: reopened
Priority: highest | Milestone: 1.7.0
Component: numpy.core | Version: 1.6.1
Resolution: | Keywords: unique
-------------------------+--------------------------------------------------
Changes (by jterrace):
* status: closed => reopened
* resolution: fixed =>
Comment:
This broke some code that used to work for me because my data type doesn't
support mergesort. Not sure if this can be fixed?
{{{
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/celery/execute/trace.py",
line 181, in trace_task
R = retval = fun(*args, **kwargs)
File "/disk/local/jterrace/sirikata-cdn/sirikata-
cdn/celery_tasks/generate_progressive.py", line 45, in
generate_progressive
mesh = sander_simplify.simplify()
File
"/disk/local/jterrace/meshtool/meshtool/filters/simplify_filters/sander_simplify.py",
line 2116, in simplify
self.split_base_and_pm()
File
"/disk/local/jterrace/meshtool/meshtool/filters/simplify_filters/sander_simplify.py",
line 1872, in split_base_and_pm
unique_stacked_indices, index_map, new_tris =
numpy.unique(stacked_indices.view([('',stacked_indices.dtype)]*stacked_indices.shape[1]),
return_index=True, return_inverse=True)
File "/usr/local/lib/python2.7/dist-packages/numpy/lib/arraysetops.py",
line 178, in unique
perm = ar.argsort(kind='mergesort')
TypeError: requested sort not available for type
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2063#comment:8>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list