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

HS: Fix input_kp type for export.

Showing with 3 additions and 3 deletions
+3 -3
......@@ -200,7 +200,7 @@ class HydraulicStructure(SQLSubModel):
@input_kp.setter
def input_kp(self, input_kp):
self._input_kp = input_kp
self._input_kp = float(input_kp)
self._status.modified()
@property
......
......@@ -491,7 +491,7 @@ class Mage(CommandLineSolver):
f.write(
'* ouvrage au pk ' +
f"{hs.input_kp:>12.1f}" + ' ' +
f"{float(hs.input_kp):>12.1f}" + ' ' +
hs.name + '\n'
)
......@@ -510,7 +510,7 @@ class Mage(CommandLineSolver):
f.write(
f"{sin_dict[bhs._type]} " +
f"{reach_id} {hs.input_kp:>12.3f} {param_str} " +
f"{reach_id} {float(hs.input_kp):>12.3f} {param_str} " +
f"{name}\n"
)
......
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