10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Fix undefined

This commit is contained in:
Mickaël Véril 2020-07-08 13:24:29 +02:00
parent 76559d21db
commit 2e2080c2a1
2 changed files with 57 additions and 54 deletions

View File

@ -1,12 +1,15 @@
from ..formatHandlerBase import formatHandlerBase
from ..formatName import formatName
from ...data import dataFileBase,DataType,method,excitationValue,datafileSelector,AbsDataFile,getSubtablesRange
from ...data import dataFileBase,DataType,method,excitationValue,datafileSelector,AbsDataFile,getSubtablesRange,state
from ...LaTeX import newCommand
import re
from TexSoup import TexSoup
import numpy as np
from ...utils import getValFromCell
@formatName("doubleColumn")
class doubleColumnHandler(formatHandlerBase):
def readFromTable(self,table):
datalist=list()
datacls=dict()
subtablesMol=getSubtablesRange(table)
for rangeMol in subtablesMol:
@ -22,7 +25,7 @@ class doubleColumnHandler(formatHandlerBase):
except:
print(f"Error when parsing latex state: {str(mytransdesc[i])}")
exit(-1)
newCommand.runAll(mathsoup,commands)
newCommand.runAll(mathsoup,self.commands)
mytransdesc[i]=str(mathsoup)
for colindex in range(3,np.size(table,1)):
col=mytrans[:,colindex]

View File

@ -20,7 +20,7 @@ class doubleTBEHandler(formatHandlerBase):
except:
print(f"Error when parsing latex state: {str(mytransdesc[i])}")
exit(-1)
newCommand.runAll(mathsoup,commands)
newCommand.runAll(mathsoup,self.commands)
mytransdesc=str(mathsoup)
infin=mytransdesc.split(r"\rightarrow")
for i,item in enumerate(infin):