Skip to content

Commit

Permalink
Merge branch 'catching_failed_in_memory' of github.com:fusion-energy/…
Browse files Browse the repository at this point in the history
…cad_to_dagmc into catching_failed_in_memory
  • Loading branch information
shimwell committed Oct 14, 2024
2 parents 40490d1 + 037f707 commit 943b815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cad_to_dagmc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def get_volumes(gmsh, assembly, method="file"):
if method == "in memory":
volumes = gmsh.model.occ.importShapesNativePointer(assembly.wrapped._address())
gmsh.model.occ.synchronize()
elif method == 'file':
elif method == "file":
with tempfile.NamedTemporaryFile(suffix=".step") as temp_file:
exporters.export(assembly, temp_file.name)
volumes = gmsh.model.occ.importShapes(temp_file.name)
Expand Down

0 comments on commit 943b815

Please sign in to comment.