[Numpy-discussion] bug in numpy.where?

Andreas Mueller amueller@ais.uni-bonn...
Fri Jul 27 14:58:57 CDT 2012


Hi Everybody.
The bug is that no error is raised, right?
The docs say

where(condition, [x, y])

x, y : array_like, optional
     Values from which to choose. `x` and `y` need to have the same
     shape as `condition`

In the example you gave, x was a scalar.

Cheers,
Andy


More information about the NumPy-Discussion mailing list