From f61c978c6477df204caa7974796ce5042c47b892 Mon Sep 17 00:00:00 2001 From: Pablo Brubeck Date: Wed, 4 Dec 2024 18:16:48 +0000 Subject: [PATCH] fix tuple((self, )) --- firedrake/function.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firedrake/function.py b/firedrake/function.py index 585a1511d1..da4d264971 100644 --- a/firedrake/function.py +++ b/firedrake/function.py @@ -125,7 +125,7 @@ def split(self): @utils.cached_property def _components(self): if self.function_space().rank == 0: - return tuple((self, )) + return (self, ) else: if self.dof_dset.cdim == 1: return (CoordinatelessFunction(self.function_space().sub(0), val=self.dat, @@ -335,7 +335,7 @@ def split(self): @utils.cached_property def _components(self): if self.function_space().rank == 0: - return tuple((self, )) + return (self, ) else: return tuple(type(self)(self.function_space().sub(i), self.topological.sub(i)) for i in range(self.function_space().block_size))