10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +01:00

Fix exoticColumnHandler

This commit is contained in:
Mickaël Véril 2020-08-03 16:25:10 +02:00
parent 6ab3aa9c99
commit 3f52913a19

View File

@ -33,7 +33,7 @@ class exoticColumnHandler(formatHandlerBase):
methodname=str(methtex) methodname=str(methtex)
mymethod=method(methodname,basis) mymethod=method(methodname,basis)
methkey=json.dumps(mymethod.__dict__) methkey=json.dumps(mymethod.__dict__)
finsts=dataFileBase.convertState(table[myrange,1],initialState,default=self.TexOps.default,commands=self.commands) finsts=dataFileBase.convertState(table[myrange,1],initialState,default=self.TexOps.defaultType,commands=self.commands)
for index,cell in enumerate(col[myrange]): for index,cell in enumerate(col[myrange]):
if str(cell)!="": if str(cell)!="":
val,unsafe=getValFromCell(cell) val,unsafe=getValFromCell(cell)
@ -57,7 +57,7 @@ class exoticColumnHandler(formatHandlerBase):
#data.excitations.append(excitationValue(initialState,finst[0],val,type=finst[2])) #data.excitations.append(excitationValue(initialState,finst[0],val,type=finst[2]))
for dt,methdic in valDic.items(): for dt,methdic in valDic.items():
for methstring,exdic in methdic.items(): for methstring,exdic in methdic.items():
data=datafileSelector[dt]() data=datafileSelector(dt)()
data.molecule=mymolecule data.molecule=mymolecule
methdic=json.loads(methstring) methdic=json.loads(methstring)
data.method=method(methdic["name"],methdic["basis"]) data.method=method(methdic["name"],methdic["basis"])