10
0
mirror of https://github.com/LCPQ/EMSL_Basis_Set_Exchange_Local synced 2024-11-08 23:23:47 +01:00

New db working

This commit is contained in:
Thomas Applencourt 2015-01-09 16:32:40 +01:00
parent cf1e3768d7
commit 80c69ae88a
2 changed files with 8 additions and 1 deletions

Binary file not shown.

View File

@ -129,13 +129,20 @@ class EMSL_dump:
raise Exception("WARNING not DATA") raise Exception("WARNING not DATA")
else: else:
data = data.replace("PHOSPHOROUS", "PHOSPHORUS") data = data.replace("PHOSPHOROUS", "PHOSPHORUS")
data = data[b + 5:e].split('\n\n') data = data.replace("D+", "E+")
data = data.replace("D-", "E-")
data = data[b + 5:e-1].split('\n\n')
for (elt, data_elt) in zip(elts, data): for (elt, data_elt) in zip(elts, data):
elt_long_th = dict_ele[elt.lower()] elt_long_th = dict_ele[elt.lower()]
elt_long_exp = data_elt.split()[0].lower() elt_long_exp = data_elt.split()[0].lower()
if "$" in data_elt:
print "Eror",
raise Exception("WARNING not bad split")
if elt_long_th == elt_long_exp: if elt_long_th == elt_long_exp:
d.append((name, des, elt, data_elt.strip())) d.append((name, des, elt, data_elt.strip()))
else: else: