mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 04:13:47 +01:00
U_matrix fix
This commit is contained in:
parent
23096e0e76
commit
56162a72bf
@ -40,7 +40,7 @@ def U_matrix(l, radial_integrals=None, U_int=None, J_hund=None, basis="spherical
|
|||||||
if basis == "cubic": T = spherical_to_cubic(l)
|
if basis == "cubic": T = spherical_to_cubic(l)
|
||||||
if basis == "other" and T == None:
|
if basis == "other" and T == None:
|
||||||
raise ValueError("U_matrix: provide T for other bases.")
|
raise ValueError("U_matrix: provide T for other bases.")
|
||||||
if T != None: transform_U_matrix(U_matrix, T)
|
if T != None: U_matrix = transform_U_matrix(U_matrix, T)
|
||||||
|
|
||||||
return U_matrix
|
return U_matrix
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user