From d95154ffa98a8107dc01e4a886fbe64ab139b413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Argos=29?= <stepan@adjemian.eu> Date: Sat, 21 Oct 2023 10:18:00 +0200 Subject: [PATCH] Do not automagically cherrypick vars from pac_target_nonstationary. --- matlab/cherrypick.m | 7 ------- 1 file changed, 7 deletions(-) diff --git a/matlab/cherrypick.m b/matlab/cherrypick.m index 055cd29489..71f0d9ba58 100644 --- a/matlab/cherrypick.m +++ b/matlab/cherrypick.m @@ -197,13 +197,6 @@ try end end end - if ~isempty(istar) - % Note that auxlhs and rhs are already defined in the previous block, it is not possible to be here if isempty(ispac) is true. - auxlhs{end+1} = M_.endo_names{M_.pac.(ispac.name).ec.vars(M_.pac.(ispac.name).ec.istarget)}; - rhs{end+1} = M_.aux_vars(strmatch(auxlhs{end}, M_.endo_names, 'exact')==[M_.aux_vars(:).endo_index]).orig_expr; - rhs{end} = remove_aux_variables_from_expression(rhs{end}, M_); - RHS = strrep(RHS, sprintf('pac_target_nonstationary(model_name = %s)', ispac.name), sprintf('%s(-1)', auxlhs{end})); - end % Print equation for unrolled PAC/VAR-expectation and update % list of parameters and endogenous variables (if any). if ~isempty(rhs) -- GitLab