[SciPy-user] arraysetops & string arrays
David Warde-Farley
dwf at cs.toronto.edu
Wed Dec 19 16:21:08 EST 2007
Hi there,
I noticed that setdiff1d() fails on string arrays. (numpy 1.0.3.1).
There's nothing in the documentation that suggests it's for numeric
dtypes only; should there be, or is this a bug?
The problem appears to be the line
tt = nm.concatenate( (zlike( ar1 ), zlike( ar2 ) + 1) )
where zlike() is returning an array of empty strings, and thus adding
1 is causing problems. I tried modifying it to cast to int32 without
much success.
David
More information about the SciPy-User
mailing list