mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-08-25 13:41:50 +02:00
Fix undefined
This commit is contained in:
parent
76559d21db
commit
2e2080c2a1
@ -1,12 +1,15 @@
|
|||||||
from ..formatHandlerBase import formatHandlerBase
|
from ..formatHandlerBase import formatHandlerBase
|
||||||
from ..formatName import formatName
|
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
|
from ...LaTeX import newCommand
|
||||||
import re
|
import re
|
||||||
|
from TexSoup import TexSoup
|
||||||
|
import numpy as np
|
||||||
from ...utils import getValFromCell
|
from ...utils import getValFromCell
|
||||||
@formatName("doubleColumn")
|
@formatName("doubleColumn")
|
||||||
class doubleColumnHandler(formatHandlerBase):
|
class doubleColumnHandler(formatHandlerBase):
|
||||||
def readFromTable(self,table):
|
def readFromTable(self,table):
|
||||||
|
datalist=list()
|
||||||
datacls=dict()
|
datacls=dict()
|
||||||
subtablesMol=getSubtablesRange(table)
|
subtablesMol=getSubtablesRange(table)
|
||||||
for rangeMol in subtablesMol:
|
for rangeMol in subtablesMol:
|
||||||
@ -22,7 +25,7 @@ class doubleColumnHandler(formatHandlerBase):
|
|||||||
except:
|
except:
|
||||||
print(f"Error when parsing latex state: {str(mytransdesc[i])}")
|
print(f"Error when parsing latex state: {str(mytransdesc[i])}")
|
||||||
exit(-1)
|
exit(-1)
|
||||||
newCommand.runAll(mathsoup,commands)
|
newCommand.runAll(mathsoup,self.commands)
|
||||||
mytransdesc[i]=str(mathsoup)
|
mytransdesc[i]=str(mathsoup)
|
||||||
for colindex in range(3,np.size(table,1)):
|
for colindex in range(3,np.size(table,1)):
|
||||||
col=mytrans[:,colindex]
|
col=mytrans[:,colindex]
|
||||||
|
@ -20,7 +20,7 @@ class doubleTBEHandler(formatHandlerBase):
|
|||||||
except:
|
except:
|
||||||
print(f"Error when parsing latex state: {str(mytransdesc[i])}")
|
print(f"Error when parsing latex state: {str(mytransdesc[i])}")
|
||||||
exit(-1)
|
exit(-1)
|
||||||
newCommand.runAll(mathsoup,commands)
|
newCommand.runAll(mathsoup,self.commands)
|
||||||
mytransdesc=str(mathsoup)
|
mytransdesc=str(mathsoup)
|
||||||
infin=mytransdesc.split(r"\rightarrow")
|
infin=mytransdesc.split(r"\rightarrow")
|
||||||
for i,item in enumerate(infin):
|
for i,item in enumerate(infin):
|
||||||
|
Loading…
Reference in New Issue
Block a user