From de8298c73854b8a55fcc2505220e2612ca75ec04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Argos=29?= <stepan@adjemian.eu> Date: Thu, 7 Mar 2024 10:34:05 +0100 Subject: [PATCH] Bug fix (name of the PAC model). Was crashing if the PAC target was composite. --- matlab/+pac/+update/parameters.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/+pac/+update/parameters.m b/matlab/+pac/+update/parameters.m index 655ab97e4..05f8cf1e9 100644 --- a/matlab/+pac/+update/parameters.m +++ b/matlab/+pac/+update/parameters.m @@ -79,7 +79,7 @@ else end % Makes no sense to have a composite PAC target with a trend component auxiliary model (where all the variables are non stationnary) -if numberofcomponents>0 && strcmp(M_.pac.pacman.auxiliary_model_type, 'trend_component') +if numberofcomponents>0 && strcmp(pacmodel.auxiliary_model_type, 'trend_component') error('Composite PAC target not allowed with trend component model.') end -- GitLab