[Numpy-discussion] Is the select function broken in numpy?
Cory Davis
corzneffect at gmail.com
Sun Mar 18 14:20:36 EDT 2007
I have a few day old svn update of numpy where the following code
produces an error, yet not in numpy-0.9.8
from numpy import *
print select([array([1]),array([0])],[array([2]),array([3])])
File "/tmp/tmpY-7FJN/lib64/python/numpy/lib/function_base.py", line
426, in select
File "/tmp/tmpY-7FJN/lib64/python/numpy/core/fromnumeric.py", line
151, in choose
TypeError: array cannot be safely cast to required type
[
Any clues?
More information about the NumPy-Discussion
mailing list