From 2a074840dde9806a5aa093c0cac8f7208a40560f Mon Sep 17 00:00:00 2001 From: Alex Fikl Date: Sat, 12 Aug 2023 12:12:18 +0300 Subject: [PATCH] processing: assert that the facial group does not have a map MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Andreas Klöckner --- meshmode/mesh/processing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/meshmode/mesh/processing.py b/meshmode/mesh/processing.py index 0544216c..a5013647 100644 --- a/meshmode/mesh/processing.py +++ b/meshmode/mesh/processing.py @@ -1434,6 +1434,7 @@ def compute_new_map(old_map: AffineMap) -> AffineMap: new_fagrp: FacialAdjacencyGroup = replace( old_fagrp, aff_map=compute_new_map(old_fagrp.aff_map)) else: + assert not hasattr(old_fagrp, "aff_map") new_fagrp = old_fagrp fagrp_list.append(new_fagrp)