Skip to content

Commit

Permalink
fix nontransition during check
Browse files Browse the repository at this point in the history
  • Loading branch information
gboehl committed Nov 11, 2024
1 parent c709aae commit fc28857
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions econpizza/parser/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ def check_determinancy(evars, eqns):
def check_initial_values(model, shocks, init_guesses, fixed_values, init_wf, pre_stst_mapping):

from . import d2jnp

# run func_pre_stst to translate init values into vars & pars
init_vals, par = func_pre_stst(
d2jnp(init_guesses), d2jnp(fixed_values), pre_stst_mapping)
transform_back = model['options'].get('transform_back') or (lambda x: x)
init_vals, par = func_pre_stst(transform_back(d2jnp(init_guesses)), transform_back(d2jnp(fixed_values)), pre_stst_mapping)

# collect some information needed later
model['context']['init_run'] = {}
Expand Down

0 comments on commit fc28857

Please sign in to comment.