mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 05:43:46 +01:00
Fix bug for "Line" table
This commit is contained in:
parent
137ecfcafa
commit
b7115b96c2
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user