From fc288577dfa7c3589ea284ae9ab50c0e92eeecbf Mon Sep 17 00:00:00 2001 From: Gregor Boehl Date: Mon, 11 Nov 2024 19:44:02 +0100 Subject: [PATCH] fix nontransition during check --- econpizza/parser/checks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/econpizza/parser/checks.py b/econpizza/parser/checks.py index 6b92ad3..249dd4f 100644 --- a/econpizza/parser/checks.py +++ b/econpizza/parser/checks.py @@ -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'] = {}