8000
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
a = np.ma.array([10, 20, 30, 40, 50, 60, 70, 80, 90, -1]) log_a = np.log(a) np.average(log_a), np.mean(log_a) # returns (3.452509331702788, 3.7250103685586535)
This can be fixed by changing https://github.com/numpy/numpy/blob/v1.11.0/numpy/lib/function_base.py#L921 from "np.asarray" to "np.asanyarray", but I didn't want to make a whole dev env just for that little fix.
The text was updated successfully, but these errors were encountered:
Thanks for the report. This was a known annoyance that should be fixed in recent numpy (and will be available in numpy 1.13); see #8290.
Sorry, something went wrong.
Oh thanks, didn't see that when I searched.
No branches or pull requests
This can be fixed by changing https://github.com/numpy/numpy/blob/v1.11.0/numpy/lib/function_base.py#L921 from "np.asarray" to "np.asanyarray", but I didn't want to make a whole dev env just for that little fix.
The text was updated successfully, but these errors were encountered: