Skip to content

np.asscalar will be deprecated in the next NumPy release #12346

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

Closed
mattip opened this issue Oct 10, 2018 · 2 comments
Closed

np.asscalar will be deprecated in the next NumPy release #12346

mattip opened this issue Oct 10, 2018 · 2 comments

Comments

@mattip
Copy link

mattip commented Oct 10, 2018

A "heads up" from NumPy - numpy/numpy#12123 deprecated np.asscalar(a), and recommends using a.item() instead. The item method is tested and more flexible. It seems there is one use of np.asscalar in the code base.

@amueller
Copy link
Member

It seems that it's in a "fix" for numpy <1.10, so I don't think it should be an issue.

@amueller
Copy link
Member

Thanks for the heads-up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants