Skip to content
Snippets Groups Projects
Verified Commit d68b141c authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Add more explicit error message.

pac.print does not work in PAC/MCE equations.

(cherry picked from commit ceb67c42)
parent 6c21ac9a
No related branches found
No related tags found
No related merge requests found
Pipeline #6202 failed
...@@ -91,6 +91,7 @@ end ...@@ -91,6 +91,7 @@ end
expectationmodel = M_.(expectationmodelfield).(expectationmodelname); expectationmodel = M_.(expectationmodelfield).(expectationmodelname);
% Get the name of the associated VAR model and test its existence. % Get the name of the associated VAR model and test its existence.
if isfield(M_.(expectationmodelfield), 'auxiliary_model_type')
if ~isfield(M_.(expectationmodel.auxiliary_model_type), expectationmodel.auxiliary_model_name) if ~isfield(M_.(expectationmodel.auxiliary_model_type), expectationmodel.auxiliary_model_name)
switch expectationmodelkind switch expectationmodelkind
case 'var' case 'var'
...@@ -100,6 +101,9 @@ if ~isfield(M_.(expectationmodel.auxiliary_model_type), expectationmodel.auxilia ...@@ -100,6 +101,9 @@ if ~isfield(M_.(expectationmodel.auxiliary_model_type), expectationmodel.auxilia
otherwise otherwise
end end
end end
else
error('print method does not work in PAC/MCE.')
end
auxmodel = M_.(expectationmodel.auxiliary_model_type).(expectationmodel.auxiliary_model_name); auxmodel = M_.(expectationmodel.auxiliary_model_type).(expectationmodel.auxiliary_model_name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment