iode.Identity.variables
- property Identity.variables: List[str]
Return the list of variables present in the identity.
- Returns:
- list(str)
Examples
>>> from iode import SAMPLE_DATA_DIR >>> from iode import Identity, scalars, variables >>> scalars.load(f"{SAMPLE_DATA_DIR}/fun.scl") Loading .../fun.scl 161 objects loaded >>> variables.load(f"{SAMPLE_DATA_DIR}/fun.var") Loading .../fun.var 394 objects loaded >>> idt = Identity("1 - exp((gamma2 + gamma3 * ln(W/ZJ)[-1] + gamma4 * ln(WMIN/ZJ)) / gamma_)") >>> idt Identity('1 - exp((gamma2 + gamma3 * ln(W/ZJ)[-1] + gamma4 * ln(WMIN/ZJ)) / gamma_)') >>> idt.variables ['W', 'ZJ', 'WMIN']