iode.Equation.split_equation
- Equation.split_equation() Tuple[str, str][source]
Split an equation into its left-hand side and its right-hand side.
- Returns:
- tuple(str, str)
Examples
>>> from iode import SAMPLE_DATA_DIR >>> from iode import Equation >>> eq_ACAF = Equation("ACAF", "(ACAF / VAF[-1]) := acaf1 + acaf2 * GOSF[-1] + acaf4 * (TIME=1995)") >>> lhs, rhs = eq_ACAF.split_equation() >>> # left-hand side >>> lhs '(ACAF / VAF[-1])' >>> # right-hand side >>> rhs 'acaf1 + acaf2 * GOSF[-1] + acaf4 * (TIME=1995)'