10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-04 21:24:00 +01:00

Fix bug for "Line" table

This commit is contained in:
Mickaël Véril 2019-12-17 12:19:15 +01:00
parent 137ecfcafa
commit b7115b96c2

View File

@ -73,7 +73,7 @@ class dataFileBase(object):
col=table[:,col] col=table[:,col]
mymolecule=str(col[0]) mymolecule=str(col[0])
mymethod=method(str(col[2]),str(col[1])) mymethod=method(str(col[2]),str(col[1]))
finsts=dataFileBase.convertState(table[3:,0],firstState,commands=commands) finsts=dataFileBase.convertState(table[3:,0],default=default,firstState=firstState,commands=commands)
datacls=dict() datacls=dict()
for index,cell in enumerate(col[3:]): for index,cell in enumerate(col[3:]):
if str(cell)!="": if str(cell)!="":
@ -86,11 +86,11 @@ class dataFileBase(object):
else: else:
cl=switcher[dt] cl=switcher[dt]
data=cl() data=cl()
datacls[dt]=data
data.molecule=mymolecule data.molecule=mymolecule
data.method=mymethod data.method=mymethod
data.excitations.append(excitationValue(firstState,finst[0],val,type=finst[2],isUnsafe=False)) data.excitations.append(excitationValue(firstState,finst[0],val,type=finst[2],isUnsafe=False))
for datamtbe in datacls.values(): datalist.append(data)
datalist.append(datamtbe)
return datalist return datalist
elif format==Format.COLUMN: elif format==Format.COLUMN:
subtablesindex=list() subtablesindex=list()