[Numpy-discussion] Inconsistent behavior for ufuncs in numpy v1.10.X

Charles R Harris charlesr.harris at gmail.com
Tue Jan 26 13:12:10 EST 2016


On Tue, Jan 26, 2016 at 10:45 AM, Sebastian Berg <sebastian at sipsolutions.net
> wrote:

> On Di, 2016-01-26 at 17:27 +0000, Solbrig,Jeremy wrote:
> > Hello Chuck,
> >
> > I receive the same result with 1.10.4.  I agree that it looks like
> > __array_prepare__, __array_finalize__, and __array_wrap__ have not
> > been changed.  I’m starting to dig into the source again, but
> > focusing on the _MaskedBinaryOperation class to try to understand
> > what is going on there.
> >
>
> Well, there was definitely a change in that code that will cause this,
> i.e. the code block:
>
>         if isinstance(b, MaskedArray):
>             if isinstance(a, MaskedArray):
>                 result._update_from(a)
>             else:
>                 result._update_from(b)
>         elif isinstance(a, MaskedArray):
>             result._update_from(a)
>
> was changed to something like:
>
>         masked_result._update_from(result)
>

That looks like it, 3c6b6baba, #3907
<https://github.com/numpy/numpy/pull/3907>. That's old...

<snip>

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160126/2e6a402d/attachment.html>


More information about the NumPy-Discussion mailing list