mirror of
https://github.com/LCPQ/EMSL_Basis_Set_Exchange_Local
synced 2024-11-01 03:33:46 +01:00
Fix string_to_nb_mo
This commit is contained in:
parent
b5471ae36d
commit
5c2e20af96
@ -76,16 +76,14 @@ def string_to_nb_mo(str_l):
|
|||||||
|
|
||||||
d = {"S": 3,
|
d = {"S": 3,
|
||||||
"P": 5,
|
"P": 5,
|
||||||
"D": 7,
|
"D": 7}
|
||||||
"F": 9,
|
|
||||||
"L": 8}
|
|
||||||
|
|
||||||
if str_l in d:
|
if str_l in d:
|
||||||
return d[str_l]
|
return d[str_l]
|
||||||
# ord("G") = 72 and ord("Z") = 87
|
# ord("F") = 70 and ord("Z") = 87
|
||||||
elif 72 <= ord(str_l) <= 87:
|
elif 70 <= ord(str_l) <= 87:
|
||||||
# orf("G") = 72 and l = 4 so ofset if 68
|
# ord("F") = 70 and l = 4 so ofset if 66
|
||||||
return 2 * (ord(str_l) - 68) + 1
|
return 2 * (ord(str_l) - 66) + 1
|
||||||
else:
|
else:
|
||||||
raise BaseException
|
raise BaseException
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user