10
0
mirror of https://github.com/LCPQ/EMSL_Basis_Set_Exchange_Local synced 2024-10-31 19:23:42 +01:00

Fix #8 Same coef in L for S and P issue

This commit is contained in:
Thomas Applencourt 2015-03-10 09:03:22 +01:00
parent 05553ec132
commit 284c697fab
2 changed files with 11 additions and 3 deletions

View File

@ -78,7 +78,7 @@ if __name__ == '__main__':
l = e.get_list_basis_available(elts)
for name, des, n in l:
print name, "(",n,")","|", des
print name, "(", n, ")", "|", des
# _ _ _ _____ _ _
# | | (_) | | | ___| | | |

View File

@ -485,8 +485,11 @@ class EMSL_local:
body_s = []
body_p = []
print l_line_raw
for i_l in l_line_raw[begin + 1:end]:
# one L => S & P
a = i_l.split()
common = "{:>3}".format(a[0])
@ -495,8 +498,13 @@ class EMSL_local:
tail_s = common + "{:>23.7f}".format(float(a[2]))
body_s.append(tail_s)
tail_p = common + "{:>23.7f}".format(float(a[3]))
body_p.append(tail_p)
# Is only a whan only 3 elements, coef for p == coef for s
try:
tail_p = common + "{:>23.7f}".format(float(a[3]))
except IndexError:
tail_p = tail_s
finally:
body_p.append(tail_p)
l_line += [l_line_raw[begin].replace("L", "S")]
l_line += body_s