[Numpy-discussion] Warning: converting a masked element to nan
Pierre GM
pgmdevlist at gmail.com
Wed Apr 23 04:57:33 EDT 2008
On Wednesday 23 April 2008 04:00:13 Eric Firing wrote:
> I think there is a bug in that method; it always returns a nan,
> sometimes with the warning, and sometimes without.
Well, the first time you get a warning, you don't the following times.
> By analogy with the
> ndarray method, it should raise an exception if the array has more than
> one element, and it there is only one element, it should try to convert
> it to a python float.
Sounds like a plan. I'll take care of that tomorrow.
More information about the NumPy-Discussion
mailing list