[Numpy-discussion] Is the select function broken in numpy?

Cory Davis corzneffect@gmail....
Sun Mar 18 13:20:36 CDT 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