Skip to content

Commit

Permalink
Update plotting.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
thorek1 authored Jan 25, 2024
1 parent 10e1317 commit e66bc5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plotting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ function plot_irf(𝓂::β„³;
elseif shocks isa KeyedArray{Float64}
shock_idx = 1

obc_shocks_included = stochastic_model && obc_model && sum(abs2,shocks(intersect(𝓂.timings.exo,axiskeys(shocks,1)),:)) > 1e-10
obc_shocks_included = stochastic_model && obc_model && sum(abs2,shocks(intersect(𝓂.timings.exo[contains.(string.(𝓂.timings.exo),"α΅’α΅‡αΆœ")],axiskeys(shocks,1)),:)) > 1e-10
else
shock_idx = parse_shocks_input_to_index(shocks,𝓂.timings)

Expand Down Expand Up @@ -469,7 +469,7 @@ function plot_irf(𝓂::β„³;
if occasionally_binding_constraints
state_update, pruning = parse_algorithm_to_state_update(algorithm, 𝓂, true)
elseif obc_shocks_included
@assert algorithm βˆ‰ [:pruned_second_order, :second_order, :pruned_third_order, :third_order] "Occasionally binding constraint shocks witout enforcing the constraint is only compatible with first order perturbation solutions."
@assert algorithm βˆ‰ [:pruned_second_order, :second_order, :pruned_third_order, :third_order] "Occasionally binding constraint shocks without enforcing the constraint is only compatible with first order perturbation solutions."

state_update, pruning = parse_algorithm_to_state_update(algorithm, 𝓂, true)
else
Expand Down Expand Up @@ -1606,4 +1606,4 @@ function plot_conditional_forecast(𝓂::β„³,

return return_plots

end
end

0 comments on commit e66bc5f

Please sign in to comment.