From d0addd940c2d85ad6539f88aa801c5367abc2256 Mon Sep 17 00:00:00 2001 From: Carlo Castoldi Date: Sat, 21 Dec 2024 11:30:11 +0100 Subject: [PATCH] skip mesh creation if done already --- .../atlas_generation/atlas_scripts/kim_devccf_mouse.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/brainglobe_atlasapi/atlas_generation/atlas_scripts/kim_devccf_mouse.py b/brainglobe_atlasapi/atlas_generation/atlas_scripts/kim_devccf_mouse.py index f07b7d1..4d575a5 100644 --- a/brainglobe_atlasapi/atlas_generation/atlas_scripts/kim_devccf_mouse.py +++ b/brainglobe_atlasapi/atlas_generation/atlas_scripts/kim_devccf_mouse.py @@ -137,6 +137,10 @@ def create_meshes(output_path: str|Path, # total=5, description="Creating meshes", ): + output_file = output_path/f"{node.identifier}.obj" + if output_file.exists(): + # print(f"mesh already existing: {output_file.exists()} - {output_file}") + continue # root_node = tree.nodes[root_id] create_region_mesh( (