We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
>>> x = np.eye(3) >>> y = np.eye(3) >>> np.where([0, 1, 0], x, y) array([[ 1., 0., 0.], [ 0., 1., 0.], [ 0., 0., 1.]]) >>> np.ma.where([0, 1, 0], x, y) Traceback (most recent call last): File "<pyshell#24>", line 1, in <module> np.ma.where([0, 1, 0], x, y) File "C:\Program Files\Python 3.5\lib\site-packages\numpy\ma\core.py", line 6964, in where np.copyto(d._data, xv.astype(ndtype), where=fc) ValueError: could not broadcast input array from shape (3,3) into shape (3)
The text was updated successfully, but these errors were encountered:
MaskedArray.__setitem__
BUG: Make np.ma.where delegate to np.where
2d229ef
Fixes numpy#8600 and numpy#8599 Also makes np.ma.masked work with structured dtypes.
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
The text was updated successfully, but these errors were encountered: