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
The text was updated successfully, but these errors were encountered:
jacekt
changed the title
np.ma.masked_where(copy=False) fails to modify array in place when there are no masked elements in the array
np.ma.masked_where(copy=False) fails to modify array in place when there were no masked elements in the array initially
May 9, 2021
Uh oh!
There was an error while loading. Please reload this page.
ma.masked_where
documentation says that:But it fails to modify the array's mask when the original mask is empty:
Reproducing code example:
It works properly when there are some masked elements in the array already:
Error message:
None.
NumPy/Python version information:
1.20.2 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)]
numpy-1.20.2-cp38-cp38-win_amd64.whl
The text was updated successfully, but these errors were encountered: