mirror of https://gitlab.com/pamhyr/pamhyr2
IC: Fix name KP to RK.
parent
aee69fa3c7
commit
430cff8747
|
|
@ -386,10 +386,10 @@ class InitialConditions(SQLSubModel):
|
||||||
if not compute_discharge:
|
if not compute_discharge:
|
||||||
if len(self._data) == 0:
|
if len(self._data) == 0:
|
||||||
for profile in profiles:
|
for profile in profiles:
|
||||||
data_discharge[profile.kp] = 0.0
|
data_discharge[profile.rk] = 0.0
|
||||||
else:
|
else:
|
||||||
for data in self._data:
|
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()
|
incline = self._reach.reach.get_incline_median_mean()
|
||||||
logger.debug(f"incline = {incline}")
|
logger.debug(f"incline = {incline}")
|
||||||
|
|
@ -399,7 +399,7 @@ class InitialConditions(SQLSubModel):
|
||||||
strickler = 25
|
strickler = 25
|
||||||
|
|
||||||
if not compute_discharge:
|
if not compute_discharge:
|
||||||
discharge = data_discharge[profile.kp]
|
discharge = data_discharge[profile.rk]
|
||||||
else:
|
else:
|
||||||
discharge = (
|
discharge = (
|
||||||
((width * 0.8)
|
((width * 0.8)
|
||||||
|
|
@ -439,10 +439,10 @@ class InitialConditions(SQLSubModel):
|
||||||
if not compute_height:
|
if not compute_height:
|
||||||
if len(self._data) == 0:
|
if len(self._data) == 0:
|
||||||
for profile in profiles:
|
for profile in profiles:
|
||||||
data_height[profile.kp] = 0.0
|
data_height[profile.rk] = 0.0
|
||||||
else:
|
else:
|
||||||
for data in self._data:
|
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()
|
incline = self._reach.reach.get_incline_median_mean()
|
||||||
logger.debug(f"incline = {incline}")
|
logger.debug(f"incline = {incline}")
|
||||||
|
|
@ -452,7 +452,7 @@ class InitialConditions(SQLSubModel):
|
||||||
strickler = 25
|
strickler = 25
|
||||||
|
|
||||||
if not compute_height:
|
if not compute_height:
|
||||||
height = data_height[profile.kp]
|
height = data_height[profile.rk]
|
||||||
else:
|
else:
|
||||||
height = (
|
height = (
|
||||||
discharge
|
discharge
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue