10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-26 06:14:38 +01:00

Add missing acronym CT

This commit is contained in:
Mickaël Véril 2020-11-09 10:12:28 +01:00
parent 1f62b3f740
commit a42b85d6fa

View File

@ -16,12 +16,13 @@ def GetTypeFromAcronym(acronym):
"p3s":r"\pi \rightarrow 3s", "p3s":r"\pi \rightarrow 3s",
"p3p":r"\pi \rightarrow 3p", "p3p":r"\pi \rightarrow 3p",
"spi":r"\sigma \rightarrow \pi^\star", "spi":r"\sigma \rightarrow \pi^\star",
"CT":None,
"non-d":None "non-d":None
} }
try: try:
return acroDict[acronym] return acroDict[acronym]
except KeyError as ex: except KeyError as ex:
raise ValueError("Unrecognized acronym") from ex raise ValueError(f"Unrecognized acronym: {acronym}") from ex
def GetFullState(TexState,defaultDatatype=DataType.ABS,VR=None,typeAcronym=None,Soup=True): def GetFullState(TexState,defaultDatatype=DataType.ABS,VR=None,typeAcronym=None,Soup=True):
datatype=defaultDatatype datatype=defaultDatatype
lst=list(TexState) lst=list(TexState)