mirror of https://gitlab.com/pamhyr/pamhyr2
HS: Fix input_kp type for export.
parent
1bd05ee1c2
commit
bdc5e35453
|
|
@ -200,7 +200,7 @@ class HydraulicStructure(SQLSubModel):
|
||||||
|
|
||||||
@input_kp.setter
|
@input_kp.setter
|
||||||
def input_kp(self, input_kp):
|
def input_kp(self, input_kp):
|
||||||
self._input_kp = input_kp
|
self._input_kp = float(input_kp)
|
||||||
self._status.modified()
|
self._status.modified()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
||||||
|
|
@ -491,7 +491,7 @@ class Mage(CommandLineSolver):
|
||||||
|
|
||||||
f.write(
|
f.write(
|
||||||
'* ouvrage au pk ' +
|
'* ouvrage au pk ' +
|
||||||
f"{hs.input_kp:>12.1f}" + ' ' +
|
f"{float(hs.input_kp):>12.1f}" + ' ' +
|
||||||
hs.name + '\n'
|
hs.name + '\n'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -510,7 +510,7 @@ class Mage(CommandLineSolver):
|
||||||
|
|
||||||
f.write(
|
f.write(
|
||||||
f"{sin_dict[bhs._type]} " +
|
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"
|
f"{name}\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue