Ensemble: Results: PlotRKC: Fix table access.

This commit is contained in:
parouby committed 2026-09-08 16:33:29 +02:00
1 parent a0886d900e
commit 03299db99a
2 files changed
+15 -2

No files matched your search

+4 -2
View File
@@ -160,7 +160,8 @@ class PlotRKCEnsemble(PamhyrPlot):
table = result.get("table")[t]
ts = result.get_timestamp_id(self._current_timestamp)
water_z = table[ts, :]
gi_0, gi_1 = reach.global_index
water_z = table[ts, gi_0 : gi_1 + 1]
self.water = self.canvas.axes.plot(
rk, water_z,
@@ -264,7 +265,8 @@ class PlotRKCEnsemble(PamhyrPlot):
table = result.get("table")["Z"]
ts = result.get_timestamp_id(self._current_timestamp)
water_z = table[ts, :]
gi_0, gi_1 = reach.global_index
water_z = table[ts, gi_0 : gi_1 + 1]
self.water[0].set_data(
rk, water_z