Mage: Minor code style refactoring.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-12-13 16:44:44 +01:00
1 parent 58300b8c1a
commit ffbd2e2413
1 file changed
+6 -9
+6 -9
View File
@@ -442,14 +442,9 @@ class Mage(CommandLineSolver):
sin_dict = {
"ND": "*",
"S1": "D",
"S2": "T",
"S3": "T",
"OR": "O",
"OC": "B",
"OV": "F",
"V1": "V",
"V2": "W",
"S1": "D", "S2": "T", "S3": "T",
"OR": "O", "OC": "B", "OV": "F",
"V1": "V", "V2": "W",
"BO": "A",
"UD": "X",
"PO": "P",
@@ -466,7 +461,9 @@ class Mage(CommandLineSolver):
files.append(f"{name}.SIN")
for hs in hydraulic_structures:
if hs.input_reach.is_enable:
if not hs.input_reach.is_enable():
continue
f.write(
'* ouvrage au pk ' +
f"{hs.input_kp:>12.1f}" + ' ' +