Skip to content

Commit

Permalink
Numpy 2.0 compatibility tweak
Browse files Browse the repository at this point in the history
Checked the code with `ruff check . --select NPY201` and this was the
only required change.
  • Loading branch information
ajjackson committed Jun 21, 2024
1 parent 0a7f3f5 commit 1a8e4aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sumo/electronic_structure/optics.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def kkr(de, eps_imag, cshift=1e-6):
eps_imag = np.array(eps_imag)
nedos = eps_imag.shape[0]
cshift = complex(0, cshift)
w_i = np.arange(0, (nedos - 0.5) * de, de, dtype=np.complex_)
w_i = np.arange(0, (nedos - 0.5) * de, de, dtype=np.complex128)
w_i = np.reshape(w_i, (nedos, 1, 1))

def integration_element(w_r):
Expand Down

0 comments on commit 1a8e4aa

Please sign in to comment.