mirror of https://gitlab.com/pamhyr/pamhyr2
Results: Plot{AC,RKC}: Fix max elevation and minor change.
parent
e8f1f0ac43
commit
476fa81bc2
|
|
@ -248,8 +248,8 @@ class PlotAC(PamhyrPlot):
|
||||||
if not self._init:
|
if not self._init:
|
||||||
self.draw()
|
self.draw()
|
||||||
|
|
||||||
reach = self.results[self._current_res_id].river.reach(
|
reach = self.results[self._current_res_id]\
|
||||||
self._current_reach_id)
|
.river.reach(self._current_reach_id)
|
||||||
profile = reach.profile(self._current_profile_id)
|
profile = reach.profile(self._current_profile_id)
|
||||||
x = profile.geometry.get_station()
|
x = profile.geometry.get_station()
|
||||||
z = profile.geometry.z()
|
z = profile.geometry.z()
|
||||||
|
|
|
||||||
|
|
@ -208,9 +208,11 @@ class PlotRKC(PamhyrPlot):
|
||||||
|
|
||||||
water_z = list(
|
water_z = list(
|
||||||
map(
|
map(
|
||||||
lambda p: table[
|
lambda p: np.max(
|
||||||
ts, p.global_index
|
table[
|
||||||
],
|
:, p.global_index
|
||||||
|
]
|
||||||
|
),
|
||||||
reach.profiles
|
reach.profiles
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
@ -268,7 +270,7 @@ class PlotRKC(PamhyrPlot):
|
||||||
table = result.get("table")["Z"]
|
table = result.get("table")["Z"]
|
||||||
|
|
||||||
for profile in reach.profiles:
|
for profile in reach.profiles:
|
||||||
z_max = max(table[:, profile.global_index])
|
z_max = np.max(table[:, profile.global_index])
|
||||||
z_max_ts = 0
|
z_max_ts = 0
|
||||||
for i, ts in enumerate(self._timestamps):
|
for i, ts in enumerate(self._timestamps):
|
||||||
z = table[i, profile.global_index]
|
z = table[i, profile.global_index]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue