Skip to content
Snippets Groups Projects
Commit 6244dd00 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Bugfix: when displaying decision rules, no longer crash if an EXPECTATION...

Bugfix: when displaying decision rules, no longer crash if an EXPECTATION operator (in the past) appears as a state variable. Instead, display a (relatively uninformative) line.
(cherry picked from commit 41ff70e0)
parent b1806524
Branches
Tags
No related merge requests found
...@@ -228,6 +228,9 @@ for i = 1:length(M_.aux_vars) ...@@ -228,6 +228,9 @@ for i = 1:length(M_.aux_vars)
orig_name = deblank(M_.endo_names(M_.aux_vars(i).orig_index, :)); orig_name = deblank(M_.endo_names(M_.aux_vars(i).orig_index, :));
case 3 case 3
orig_name = deblank(M_.exo_names(M_.aux_vars(i).orig_index, :)); orig_name = deblank(M_.exo_names(M_.aux_vars(i).orig_index, :));
case 4
str = sprintf('EXPECTATION(%d)(...)', aux_lead_lag);
return
otherwise otherwise
error(sprintf('Invalid auxiliary type: %s', M_.endo_names(aux_index, :))) error(sprintf('Invalid auxiliary type: %s', M_.endo_names(aux_index, :)))
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment