-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Error in np.mean
with where
keyword (added in 1.20
version)
#18552
Comments
np.mean
with where
keword (added in 1.20
version)np.mean
with where
keyword (added in 1.20
version)
Annoying that this slipped past, but a new feature luckily. I guess the bug is with 1-D specificially or so? I am tagging for 1.20.2, but its not a regression, so if that doesn't happen its probably OK. Its probably a fairly straight forward issue also for new people to look into though. |
@seberg Thank you for confirmation! If you consider it a |
Sure, if you are up for it, that is great! I expect the fix is fairly simple, and definitely local to that chunk of code. Not quite sure whats wrong. Maybe the |
rcount == (0 if where is True else umr_any(rcount == 0)) which is not the intended (rcount == 0) if where is True else umr_any(rcount == 0) Nevermind |
#17896 is the offending PR. |
I expect |
Hmm, maybe its not quite local to here. When |
I believe #18491 refers to the same issue (so that can be closed when this one is). That issue confirms |
…mpygh-18560) * Fixed keyword bug * Added test case * Reverted to original notation * Added tests for var and std Closes numpygh-18552
Hi!
While porting latest API changes introduced in
1.20
tojax
library I've encountered an error withnp.mean(.., where=mask)
usage.I've also linked colab reproduction link below. Is that an expected behavior?
Thank you for any help!
Reproducing code example:
Here's also a reproduction in colab: https://colab.research.google.com/drive/1KFvp4BjMwO27iNVT4R9O3IvVfwMSw0nB?usp=sharing
Error message:
NumPy/Python version information:
The text was updated successfully, but these errors were encountered: