[SciPy-dev] unique hanging?

Jonathan Taylor jonathan.taylor at stanford.edu
Tue Mar 14 14:59:36 EST 2006


hi all,

apologize if this is not the right list -- in the latest svn of numpy 
unique seems to be taking a long time with "nan"

reproducible error:

-------------------------------------------------------------------------------------------
import numpy as N
import numpy.random as R

x = R.standard_normal((100000,))
x = N.around(x * 100.) / 100.

print len(N.unique(x))

x[0] = N.nan
print len(N.unique(x))


x[0:50000] = N.nan
print 'OK'

print len(N.unique(x))


-- 
------------------------------------------------------------------------
I'm part of the Team in Training: please support our efforts for the
Leukemia and Lymphoma Society!

http://www.active.com/donate/tntsvmb/tntsvmbJTaylor

GO TEAM !!!

------------------------------------------------------------------------
Jonathan Taylor                           Tel:   650.723.9230
Dept. of Statistics                       Fax:   650.725.8977
Sequoia Hall, 137                         www-stat.stanford.edu/~jtaylo
390 Serra Mall
Stanford, CA 94305

-------------- next part --------------
A non-text attachment was scrubbed...
Name: jonathan.taylor.vcf
Type: text/x-vcard
Size: 329 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20060314/5b60cfc1/attachment.vcf>


More information about the SciPy-Dev mailing list