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

Mage: Fix HYD file export (time from second to minute).

Showing with 7 additions and 1 deletion
+7 -1
...@@ -201,7 +201,13 @@ class Mage(AbstractSolver): ...@@ -201,7 +201,13 @@ class Mage(AbstractSolver):
f.write(f"*{header[0]:>9}|{header[1]:>10}\n") f.write(f"*{header[0]:>9}|{header[1]:>10}\n")
for d in bound.data: for d in bound.data:
f.write(f"{d[0]:10}{d[1]:10}\n") v0 = d[0]
v1 = d[1]
if t is "HYD":
v0 /= 60 # Convert first column to minute
f.write(f"{v0:10}{v1:10}\n")
return files return files
......
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