From da7432c07cedfdfa52b9c64cd049abb30b91986f Mon Sep 17 00:00:00 2001 From: Thore Kockerols Date: Mon, 4 Dec 2023 12:26:50 +0100 Subject: [PATCH] Update get_functions.jl --- src/get_functions.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/get_functions.jl b/src/get_functions.jl index ab8781af..985f8397 100644 --- a/src/get_functions.jl +++ b/src/get_functions.jl @@ -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."