Skip to content

Commit

Permalink
modified: ../../SUMOAutoMesh/sumoautomesh.py
Browse files Browse the repository at this point in the history
changed line 323-329
  • Loading branch information
mengmengzhang2019 committed Jan 27, 2024
1 parent 5f5041f commit d217437
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ceasiompy/SUMOAutoMesh/sumoautomesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit d217437

Please sign in to comment.