Commit a9f92637 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Solver: Mage: Fix ST file name.

Showing with 3 additions and 6 deletions
+3 -6
......@@ -148,7 +148,7 @@ class Mage(CommandLineSolver):
)
for edge in edges:
name = f"Reach_{edge.id}"
name = f"Reach_{edge.id + 1:>3}".replace(" ", "0")
with mage_file_open(
os.path.join(repertory, "net", f"{name}.ST"),
......@@ -817,11 +817,8 @@ class Mage8(Mage):
)
for e in edges:
name = e.name.replace(" ", "_")
if e._name == "":
name = f"Reach_{e.id}"
id = f"Bief_{e.id+1}"
name = f"Reach_{e.id + 1:>3}".replace(" ", "0")
id = name
n1 = f"{e.node1.id:3}".replace(" ", "x")
n2 = f"{e.node2.id:3}".replace(" ", "x")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment