10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +01:00

Fix fluorescence support for fromXLSToLaTeX format

This commit is contained in:
Mickaël Véril 2020-10-04 17:14:41 +02:00
parent 6871e0f2e5
commit d685bee542

View File

@ -21,8 +21,12 @@ def GetTypeFromAcronym(acronym):
return None
else:
raise ValueError("acronym not recognised")
def GetFullState(TexState,datatype=DataType.ABS,VR=None,typeAcronym=None,Soup=True):
statemath=str(extractMath(TexState))
def GetFullState(TexState,defaultDatatype=DataType.ABS,VR=None,typeAcronym=None,Soup=True):
datatype=defaultDatatype
lst=list(TexState)
if len(lst)>1 and lst[1].value=="F":
datatype=DataType.FLUO
statemath=str(list(lst[0].contents)[0])
resultstr=statemath
fulltype=[]
if datatype==DataType.FLUO: