Results: Plot{AC,RKC}: Fix max elevation and minor change.

This commit is contained in:
parouby committed 2026-07-07 21:56:19 +02:00
1 parent e8f1f0ac43
commit 476fa81bc2
2 files changed
+8 -6

No files matched your search

+2 -2
View File
@@ -248,8 +248,8 @@ class PlotAC(PamhyrPlot):
if not self._init:
self.draw()
reach = self.results[self._current_res_id].river.reach(
self._current_reach_id)
reach = self.results[self._current_res_id]\
.river.reach(self._current_reach_id)
profile = reach.profile(self._current_profile_id)
x = profile.geometry.get_station()
z = profile.geometry.z()
+6 -4
View File
@@ -208,9 +208,11 @@ class PlotRKC(PamhyrPlot):
water_z = list(
map(
lambda p: table[
ts, p.global_index
],
lambda p: np.max(
table[
:, p.global_index
]
),
reach.profiles
)
)
@@ -268,7 +270,7 @@ class PlotRKC(PamhyrPlot):
table = result.get("table")["Z"]
for profile in reach.profiles:
z_max = max(table[:, profile.global_index])
z_max = np.max(table[:, profile.global_index])
z_max_ts = 0
for i, ts in enumerate(self._timestamps):
z = table[i, profile.global_index]