Skip to content

Commit

Permalink
Little sim fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxBlesch committed Nov 27, 2024
1 parent 2f73ac9 commit 47993f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dcegm/simulation/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ def simulate_all_periods(
key: np.vstack([sim_dict[key], final_period_dict[key]])
for key in sim_dict.keys()
}
if "dummy_exog" not in model_sim["model_structure"]["exog_states_names"]:
result.pop("dummy_exog")
if "dummy_exog" in model_structure_solution["exog_states_names"]:
if "dummy_exog" not in model_sim["model_structure"]["exog_states_names"]:
result.pop("dummy_exog")

return result

Expand Down

0 comments on commit 47993f4

Please sign in to comment.