Skip to content
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

Do not use numpy.asfarray which is removed in 2.0 #295

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mattwthompson
Copy link
Contributor

https://numpy.org/devdocs/release/2.0.0-notes.html#numpy-2-0-python-api-removals

$ git checkout upstream/master && ruff check --preview --select NPY201 . --exclude tools
HEAD is now at b395fd4b Replace &> run.log with > run.log 2>&1 (dash compatible)
src/molecule.py:3173:22: NPY201 `np.asfarray` will be removed in NumPy 2.0. Use `np.asarray` with a `float` dtype instead.
Found 1 error.

@leeping
Copy link
Owner

leeping commented Jan 24, 2024

Thank you, Matt - I'll merge it now. I think the test failures are unrelated.

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

Successfully merging this pull request may close these issues.

None yet

2 participants