Source code for finstmt.resolver.base

from typing import Dict, List

from sympy import Eq, Idx, IndexedBase

from finstmt.combined.statements import FinancialStatements
from finstmt.resolver.solve import get_solve_eqs_and_full_subs_dict


[docs]class ResolverBase: solve_eqs: List[Eq] subs_dict: Dict[IndexedBase, float]
[docs] def __init__(self, stmts: FinancialStatements): self.stmts = stmts self.set_solve_eqs_and_full_subs_dict()
[docs] def set_solve_eqs_and_full_subs_dict(self): self.solve_eqs, self.subs_dict = get_solve_eqs_and_full_subs_dict( self.all_eqs, self.sympy_subs_dict )
@property def t(self) -> Idx: return self.stmts.config.sympy_namespace["t"]
[docs] def to_statements(self) -> FinancialStatements: raise NotImplementedError
@property def t_indexed_eqs(self) -> List[Eq]: raise NotImplementedError @property def all_eqs(self) -> List[Eq]: raise NotImplementedError @property def num_periods(self) -> int: raise NotImplementedError @property def sympy_subs_dict(self) -> Dict[IndexedBase, float]: raise NotImplementedError