Skip to content

Commit

Permalink
Merge pull request #246 from SMTG-Bham/numpy-fix
Browse files Browse the repository at this point in the history
Numpy 2.0 compatibility tweak
  • Loading branch information
utf authored Jun 25, 2024
2 parents 0a7f3f5 + 1a8e4aa commit fff98bc
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 fff98bc

Please sign in to comment.