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:
|
||||
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()
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue