mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
IC: Fix name KP to RK.
This commit is contained in:
1 parent
aee69fa3c7
commit
430cff8747
1 file changed
+6
-6
@@ -386,10 +386,10 @@ class InitialConditions(SQLSubModel):
|
||||
if not compute_discharge:
|
||||
if len(self._data) == 0:
|
||||
for profile in profiles:
|
||||
data_discharge[profile.kp] = 0.0
|
||||
data_discharge[profile.rk] = 0.0
|
||||
else:
|
||||
for data in self._data:
|
||||
data_discharge[data["kp"]] = data["discharge"]
|
||||
data_discharge[data["rk"]] = data["discharge"]
|
||||
|
||||
incline = self._reach.reach.get_incline_median_mean()
|
||||
logger.debug(f"incline = {incline}")
|
||||
@@ -399,7 +399,7 @@ class InitialConditions(SQLSubModel):
|
||||
strickler = 25
|
||||
|
||||
if not compute_discharge:
|
||||
discharge = data_discharge[profile.kp]
|
||||
discharge = data_discharge[profile.rk]
|
||||
else:
|
||||
discharge = (
|
||||
((width * 0.8)
|
||||
@@ -439,10 +439,10 @@ class InitialConditions(SQLSubModel):
|
||||
if not compute_height:
|
||||
if len(self._data) == 0:
|
||||
for profile in profiles:
|
||||
data_height[profile.kp] = 0.0
|
||||
data_height[profile.rk] = 0.0
|
||||
else:
|
||||
for data in self._data:
|
||||
data_height[data["kp"]] = data["height"]
|
||||
data_height[data["rk"]] = data["height"]
|
||||
|
||||
incline = self._reach.reach.get_incline_median_mean()
|
||||
logger.debug(f"incline = {incline}")
|
||||
@@ -452,7 +452,7 @@ class InitialConditions(SQLSubModel):
|
||||
strickler = 25
|
||||
|
||||
if not compute_height:
|
||||
height = data_height[profile.kp]
|
||||
height = data_height[profile.rk]
|
||||
else:
|
||||
height = (
|
||||
discharge
|
||||
|
||||
Reference in new issue
Block a user