[Numpy-discussion] argwhere does not accept py list
Thu Jul 9 00:39:51 CDT 2009
> 2009/7/8 Pierre GM <email@example.com>:
> On Jul 8, 2009, at 3:18 AM, Scott Sinclair wrote:
>>> 2009/7/8 Robert Kern <firstname.lastname@example.org>:
>>> 2009/7/4 Stéfan van der Walt <email@example.com>:
>>>> Thanks, Scott. This should now be fixed in SVN.
>>> You should probably change that to asanyarray() before the masked
>>> array crowd gets upset. :-)
>> I hadn't thought about that, but I'm don't think it matters in this
>> case. MaskedArray.nonzero() returns a tuple of ndarrays...
> Taking np.asarray instead of np.asanyarray loses the mask, and you end
> up with the wrong result.
Note to self - conduct extensive tests for unseasonal temperatures in
hell before raising a KernError.
Thanks for fixing Stéfan.
More information about the NumPy-Discussion