From d217437a35cb2b6794c68e2b3d3a50ab993d8a91 Mon Sep 17 00:00:00 2001 From: Mengmeng Zhang Date: Sat, 27 Jan 2024 15:02:42 +0100 Subject: [PATCH] modified: ../../SUMOAutoMesh/sumoautomesh.py changed line 323-329 --- ceasiompy/SUMOAutoMesh/sumoautomesh.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()