-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Inconsistent behavior using numpy.r_ with a masked array #9233
New issue
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
Comments
There is a |
Is there? I just get an |
Apologies, it's called |
|
Ah, my apologies for misdiagnosing. A similar failure that doesn't involve masked arrays: >>> np.r_[[1, 2], 3]
array([1, 2, 3])
>>> np.r_[[1, 2], np.array(3)]
ValueError: all the input arrays must have same number of dimensions So there are potentially two problems here - |
So this is caused by #7588 |
When using
numpy.r_
to, for example, append a value to an array, the operation fails with aValueError
if the element to be appended is masked. The behavior should be to add another masked value to the end of the array. See below where the exact same use ofr_
fails when using a masked element.The text was updated successfully, but these errors were encountered: