You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If empty_like (and also zeros_like, ones_like) is called with a masked array, then the returned array's mask is identical to the originals (i.e. shares same reference).
I think what should happen is that a new mask is returned set to False.
The text was updated successfully, but these errors were encountered:
As underlying `empty_like()` knows nothing about mask, it would be
`_convert2ma`'s job to properly set up the output mask. `copy` argument
is added to figure out which functions need this behavior.
`ones_like()` and `zeros_like()` which were mere aliases of regular
numpy functions now go through `_convert2ma` as well.
Hopefully this fixesnumpy#3145, numpy#2572.
Original ticket http://projects.scipy.org/numpy/ticket/1979 on 2011-11-14 by trac user mauro, assigned to unknown.
If empty_like (and also zeros_like, ones_like) is called with a masked array, then the returned array's mask is identical to the originals (i.e. shares same reference).
I think what should happen is that a new mask is returned set to False.
The text was updated successfully, but these errors were encountered: