10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-24 13:23:40 +01:00

Fix lineHandler

This commit is contained in:
Mickaël Véril 2020-08-02 16:30:20 +02:00
parent bdd0982b92
commit a9c090e24f

View File

@ -2,6 +2,7 @@ from ..formatHandlerBase import formatHandlerBase
from ..formatName import formatName
from ...data import dataFileBase,DataType,method,excitationValue,datafileSelector
from ...utils import getValFromCell
import numpy as np
@formatName("line")
class lineHandler(formatHandlerBase):
def readFromTable(self,table):
@ -11,7 +12,7 @@ class lineHandler(formatHandlerBase):
mymolecule=str(col[0])
mymethod=method(str(col[2]),str(col[1]))
initialState=self.TexOps.initialStates[mymolecule]
finsts=dataFileBase.convertState(table[3:,0],initialState,default=TexOps.defaultType,commands=commands)
finsts=dataFileBase.convertState(table[3:,0],initialState,default=self.TexOps.defaultType,commands=self.commands)
datacls=dict()
for index,cell in enumerate(col[3:]):
if str(cell)!="":