From 08a0e20860e2cf2c05baf175ca6902ec9c6bee5c Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Sun, 28 Apr 2024 21:14:31 +0200 Subject: [PATCH] processing: fix mesh mypy errors --- meshmode/mesh/processing.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/meshmode/mesh/processing.py b/meshmode/mesh/processing.py index a61349da..1b2a64dd 100644 --- a/meshmode/mesh/processing.py +++ b/meshmode/mesh/processing.py @@ -1359,7 +1359,10 @@ def glue_mesh_boundaries( return mesh.copy( nodal_adjacency=False, - facial_adjacency_groups=facial_adjacency_groups) + _facial_adjacency_groups=tuple([ + tuple(fagrps) for fagrps in facial_adjacency_groups + ]), + ) # }}} @@ -1403,7 +1406,8 @@ def map_mesh(mesh: Mesh, f: Callable[[np.ndarray], np.ndarray]) -> Mesh: # }}} return mesh.copy( - vertices=vertices, groups=new_groups, + vertices=vertices, + groups=tuple(new_groups), is_conforming=mesh.is_conforming) # }}} @@ -1499,8 +1503,11 @@ def compute_new_map(old_map: AffineMap) -> AffineMap: # }}} return mesh.copy( - vertices=vertices, groups=new_groups, - facial_adjacency_groups=facial_adjacency_groups, + vertices=vertices, + groups=tuple(new_groups), + _facial_adjacency_groups=tuple([ + tuple(fagrps) for fagrps in facial_adjacency_groups + ]) if facial_adjacency_groups is not None else None, is_conforming=mesh.is_conforming)