pyperfectforesight.is_static#

pyperfectforesight.is_static(eq, known_vars=None)[source]#

Check if an equation contains only current period variables

Parameters:#

eqsympy expression

Equation to check

known_varsset, optional

Set of known variable base names (vars_dyn + vars_exo + vars_aux). When provided, only symbols whose base name is in known_vars are considered time-indexed, avoiding false positives for parameters that happen to end in an integer (e.g. rho_1). When None, any symbol whose name parses as name_<int> with a nonzero integer lag is treated as a lead/lag (legacy behaviour).

Returns:#

bool : True if equation is static (no leads/lags)