From e1a63fbf81d108796e367fb9a2b0fb8715063a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Ry=C3=BBk=29?= <stepan@adjemian.eu> Date: Mon, 3 Jan 2022 22:24:32 +0100 Subject: [PATCH] Fix bug introduced in 25231f66. Set decompose equal to false if the expectation model is not a PAC. --- matlab/print_expectations.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/matlab/print_expectations.m b/matlab/print_expectations.m index 4a077f2fb4..e32ba2d84e 100644 --- a/matlab/print_expectations.m +++ b/matlab/print_expectations.m @@ -243,7 +243,11 @@ id = 0; if isfield(expectationmodel, 'h_param_indices') decompose = false; else - decompose = true; + if isequal(expectationmodelkind, 'pac') + decompose = true; + else + decompose = false; + end end clear('expression'); -- GitLab