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

Numpy 2.0 compatibility tweak #246

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Numpy 2.0 compatibility tweak #246

merged 1 commit into from
Jun 25, 2024

Conversation

ajjackson
Copy link
Member

@ajjackson ajjackson commented Jun 21, 2024

Checked the code with ruff check . --select NPY201 and this was the only required change.

~/s/sumo (numpy-fix)> ruff check . --select NPY201                                 (science)
sumo/electronic_structure/optics.py:259:54: NPY201 [*] `np.complex_` will be removed in NumPy 2.0. Use `numpy.complex128` instead.
Found 1 error.
[*] 1 fixable with the `--fix` option.

Checked the code with `ruff check . --select NPY201` and this was the
only required change.
@ajjackson ajjackson requested a review from utf June 21, 2024 12:27
@utf utf merged commit fff98bc into master Jun 25, 2024
9 checks passed
@utf
Copy link
Member

utf commented Jun 25, 2024

Great, thanks.

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.

2 participants