Skip to content

Commit

Permalink
Statespace doesn't expect deterministic parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegrabowski committed Nov 24, 2024
1 parent 87a47c8 commit cb2b351
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gEconpy/model/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def statespace_from_gcn(

not_loglin_replacement = {not_loglin_flags: not_loglin_values}

replacements = steady_state_mapping | not_loglin_replacement
replacements = parameter_mapping | steady_state_mapping | not_loglin_replacement

# Replace all placeholders with functions of the input parameters
ss_resid, ss_jac, ss_error, ss_grad, ss_hess = graph_replace(
Expand Down
4 changes: 3 additions & 1 deletion gEconpy/model/statespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ def __init__(

self.parameter_mapping = parameter_mapping
self.steady_state_mapping = steady_state_mapping
self.input_parameters = list(parameter_mapping.keys())
self.input_parameters = [
x for x in parameter_mapping.keys() if x.name in param_dict
]

self.ss_jac = ss_jac
self.ss_resid = ss_resid
Expand Down

0 comments on commit cb2b351

Please sign in to comment.