mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-04 05:03:53 +01:00
Fix lineHandler
This commit is contained in:
parent
bdd0982b92
commit
a9c090e24f
@ -2,6 +2,7 @@ from ..formatHandlerBase import formatHandlerBase
|
|||||||
from ..formatName import formatName
|
from ..formatName import formatName
|
||||||
from ...data import dataFileBase,DataType,method,excitationValue,datafileSelector
|
from ...data import dataFileBase,DataType,method,excitationValue,datafileSelector
|
||||||
from ...utils import getValFromCell
|
from ...utils import getValFromCell
|
||||||
|
import numpy as np
|
||||||
@formatName("line")
|
@formatName("line")
|
||||||
class lineHandler(formatHandlerBase):
|
class lineHandler(formatHandlerBase):
|
||||||
def readFromTable(self,table):
|
def readFromTable(self,table):
|
||||||
@ -11,7 +12,7 @@ class lineHandler(formatHandlerBase):
|
|||||||
mymolecule=str(col[0])
|
mymolecule=str(col[0])
|
||||||
mymethod=method(str(col[2]),str(col[1]))
|
mymethod=method(str(col[2]),str(col[1]))
|
||||||
initialState=self.TexOps.initialStates[mymolecule]
|
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()
|
datacls=dict()
|
||||||
for index,cell in enumerate(col[3:]):
|
for index,cell in enumerate(col[3:]):
|
||||||
if str(cell)!="":
|
if str(cell)!="":
|
||||||
|
Loading…
Reference in New Issue
Block a user