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
I think this is working as intended - the goal is to suppress slices that contain any masked elements, and in your array every slice along axes 0 and 1 contains a masked element.
There is however a bug here if you skip arr[0,0] = 1, we return an array of the wrong shape.
@eric-wieser Is this as simple as removing the following optimizations? I authored this function a number of years ago at the advice of a core developer (@charris I think?). Would be happy to fix.
# Nothing is masked: return x
if m is nomask or not m.any():
return x._data
# All is masked: return empty
if m.all():
return nxarray([])
Reproducing code example:
This code sets out to the following value:
The expected value is:
Numpy/Python version information:
The text was updated successfully, but these errors were encountered: