iode.TableCell.variables

TableCell.variables

variables: List[str]

Get the list of variables associated with the LEC expression of a cell of type β€˜LEC’.

Returns:
list(str)

Examples

>>> from iode import SAMPLE_DATA_DIR
>>> from iode import variables, tables
>>> variables.load(f"{SAMPLE_DATA_DIR}/fun.var")
>>> tables.load(f"{SAMPLE_DATA_DIR}/fun.tbl")
>>> table = tables["ANAPRIX"]    
>>> table[5]
('"dln (PC/(1+ITCR))-dln AOUC"', '100*(dln (PC/(1+ITCR))-dln AOUC)')
>>> table[5][1].variables
['PC', 'ITCR', 'AOUC']