Skip to content

Commit

Permalink
Update wannier_alpha.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xw-w authored Mar 28, 2023
1 parent 947b156 commit 159026b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wannier90-absorption/wannier_alpha.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def calc_alpha(eps):
k = np.imag(np.array(N))
alpha = 2 * w / c * k
alpha = np.array(alpha)
alpha[np.where(alpha < 1E-10)] = 1E-10
alpha[np.where(alpha < 1E-10)] = 1E-100
return alpha


Expand Down

0 comments on commit 159026b

Please sign in to comment.