[SciPy-user] arraysetops & string arrays
Wed Dec 19 15:21:08 CST 2007
I noticed that setdiff1d() fails on string arrays. (numpy 184.108.40.206).
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
More information about the SciPy-user