10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-22 18:57:38 +02:00

Fix bug when %T1 or f exist and not energy value

This commit is contained in:
Mickaël Véril 2020-09-10 16:06:34 +02:00
parent f8223b1ea2
commit 3630dd8ec9

View File

@ -112,7 +112,7 @@ class fromXLSToLaTeXHandler(formatHandlerBase):
st=state(stDict["number"],stDict["multiplicity"],stDict["symetry"])
T1=values["\\%T_1"] if "\\%T_1" in values else None
oF= values["f"] if "f" in values else None
val,unsafe=values[""]
val,unsafe= values[""] if "" in values else [None,False]
data.excitations.append(excitationValue(initialState,st,val,type=ty,T1=T1,isUnsafe=unsafe,oscilatorForces=oF))
datalist.append(data)
return datalist