Skip to content

Commit

Permalink
Fix bug in IRF
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegrabowski committed Nov 19, 2024
1 parent 5b94990 commit c8f79db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gEconpy/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,9 @@ def _make_shock_dict(shocks, shock_size=None, Q=None):

elif return_individual_shocks and shock_trajectory is not None:
for i, shock_name in enumerate(shock_names):
data[i] = _simulate(shock_trajectory[i])
traj = np.zeros_like(shock_trajectory)
traj[i] = shock_trajectory[i]
data[i] = _simulate(traj)

else:
traj = _create_shock_trajectory(
Expand Down

0 comments on commit c8f79db

Please sign in to comment.