diff --git a/ceasiompy/SUMOAutoMesh/sumoautomesh.py b/ceasiompy/SUMOAutoMesh/sumoautomesh.py index 879f66f23..e9564481a 100644 --- a/ceasiompy/SUMOAutoMesh/sumoautomesh.py +++ b/ceasiompy/SUMOAutoMesh/sumoautomesh.py @@ -320,13 +320,13 @@ def create_mesh(cpacs_path, cpacs_out_path): create_branch(tixi, EDGE_MESH_XPATH) tixi.updateTextElement(EDGE_MESH_XPATH, str(mesh_out_path)) - #edge_aboc_path = Path(sumo_results_dir, "ToolOutput.aboc") # commented by Mengmeng + edge_aboc_path = Path(sumo_results_dir, "ToolOutput.aboc") # commented by Mengmeng edge_aboc_name = aircraft_name(tixi) + f"_baseline.aboc" - edge_aboc_path = Path(sumo_results_dir, edge_aboc_name) - shutil.copyfile(mesh_path, edge_aboc_path) + aboc_out_path = Path(sumo_results_dir, edge_aboc_name) + shutil.copyfile(edge_aboc_path, aboc_out_path) create_branch(tixi, EDGE_ABOC_XPATH) - tixi.updateTextElement(EDGE_ABOC_XPATH, str(edge_aboc_path)) + tixi.updateTextElement(EDGE_ABOC_XPATH, str(aboc_out_path)) mesh_path.unlink()