[Numpy-discussion] argwhere does not accept py list

Stéfan van der Walt stefan@sun.ac...
Sat Jul 4 05:13:36 CDT 2009


Thanks, Scott.  This should now be fixed in SVN.

2009/7/3 Scott Sinclair <scott.sinclair.za@gmail.com>:
> Index: numpy/core/numeric.py
> ===================================================================
> --- numpy/core/numeric.py       (revision 7095)
> +++ numpy/core/numeric.py       (working copy)
> @@ -535,7 +535,7 @@
>            [1, 2]])
>
>     """
> -    return asarray(a.nonzero()).T
> +    return transpose(asarray(a).nonzero())


More information about the Numpy-discussion mailing list