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. By analogy with the
> ndarray method, it should raise an exception if the array has more than
> one element, and it there is
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
Vincent Schut wrote:
> Hi,
>
> Using maskedarrays (from svn numpy trunk), I sometimes get this warning:
>
> "Warning: converting a masked element to nan".
>
> It is not entirely clear to me what it means, and why it happens. Does
> it mean that numpy.ma is converting an element of the data part
Vincent,
As a generic rule, this warning is output when the masked value
(numpy.ma.masked) has to be converted to a float: in that case, a NaN is
returned. Now, the exact reason why the masked value has to be converted is
specific to your problem. A simple example of when this warning occurs wou
Hi,
Using maskedarrays (from svn numpy trunk), I sometimes get this warning:
"Warning: converting a masked element to nan".
It is not entirely clear to me what it means, and why it happens. Does
it mean that numpy.ma is converting an element of the data part of the
MA to NaN, on it's own? If s