From 9c6ce514f2fbbf6b9c4aa14fba48e6179608b272 Mon Sep 17 00:00:00 2001 From: vcarlier Date: Mon, 11 Dec 2023 18:18:44 +0100 Subject: [PATCH] add sort to hoppefully solve the bug --- psydac/linalg/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psydac/linalg/basic.py b/psydac/linalg/basic.py index dc86957b4..70d4ea94b 100644 --- a/psydac/linalg/basic.py +++ b/psydac/linalg/basic.py @@ -654,7 +654,7 @@ def transpose(self, conjugate=False): @staticmethod def simplifiy(addends): class_list = [addends[i].__class__.__name__ for i in range(len(addends))] - unique_list = list(set(class_list)) + unique_list = list(set(class_list)).sort() if len(unique_list) == 1: return addends out = ()