From 5ba6192aef70a77259f1d79dde82573aa5da1d81 Mon Sep 17 00:00:00 2001 From: shimwell Date: Sun, 17 Dec 2023 00:49:00 +0000 Subject: [PATCH] [skip ci] Apply formatting changes --- src/cad_to_dagmc/core.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/cad_to_dagmc/core.py b/src/cad_to_dagmc/core.py index 579e3ba..85629ec 100644 --- a/src/cad_to_dagmc/core.py +++ b/src/cad_to_dagmc/core.py @@ -11,7 +11,6 @@ from pymoab import core, types - def fix_normals(vertices: list, triangles_in_each_volume: list): fixed_triangles = [] for triangles in triangles_in_each_volume: @@ -462,7 +461,10 @@ def export_dagmc_h5m_file( for part in self.parts: assembly.add(part) - imprinted_assembly, imprinted_solids_with_original_id = cq.occ_impl.assembly.imprint(assembly) + ( + imprinted_assembly, + imprinted_solids_with_original_id, + ) = cq.occ_impl.assembly.imprint(assembly) gmsh, volumes = mesh_brep( brep_object=imprinted_assembly.wrapped._address(), @@ -472,12 +474,13 @@ def export_dagmc_h5m_file( ) original_ids = get_ids_from_assembly(assembly) - scrambled_ids = get_ids_from_imprinted_assembly(imprinted_solids_with_original_id) + scrambled_ids = get_ids_from_imprinted_assembly( + imprinted_solids_with_original_id + ) # both id lists should be the same length as each other and the same # length as the self.material_tags - material_tags_in_brep_order = order_material_ids_by_brep_order( original_ids, scrambled_ids, self.material_tags )