Skip to content

Commit

Permalink
Update get_functions.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
thorek1 authored Dec 4, 2023
1 parent 13e6354 commit da7432c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ function get_irf(𝓂::β„³;

stochastic_model = length(𝓂.timings.exo) > 0

obc_shocks_included = stochastic_model && (length(𝓂.obc_violation_equations) > 0) && (intersect(length(shock_idx) > 0 ? 𝓂.timings.exo[shock_idx] : [𝓂.timings.exo[shock_idx]], 𝓂.timings.exo[contains.(string.(𝓂.timings.exo),"α΅’α΅‡αΆœ")]) != [])
obc_shocks_included = stochastic_model && (length(𝓂.obc_violation_equations) > 0) && (intersect(((shock_idx isa Vector) && (length(shock_idx) > 0)) ? 𝓂.timings.exo[shock_idx] : [𝓂.timings.exo[shock_idx]], 𝓂.timings.exo[contains.(string.(𝓂.timings.exo),"α΅’α΅‡αΆœ")]) != [])

if occasionally_binding_constraints || obc_shocks_included
@assert algorithm βˆ‰ [:pruned_second_order, :second_order, :pruned_third_order, :third_order] "Occasionally binding constraints only compatible with first order perturbation solutions."
Expand Down

0 comments on commit da7432c

Please sign in to comment.