mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
HS: Fix input_kp type for export.
This commit is contained in:
1 parent
1bd05ee1c2
commit
bdc5e35453
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||||
|
|||||||
+2
-2
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user