From e19eeedcc320c45150d15930cecb95793439c02e Mon Sep 17 00:00:00 2001 From: JeaDylan <101608960+JeaDylan@users.noreply.github.com> Date: Thu, 27 Aug 2026 13:20:08 +0200 Subject: [PATCH] Export csv results: fix export flowrate as a function of time, on a study without sediments transport --- src/View/Results/Window.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/View/Results/Window.py b/src/View/Results/Window.py index be07e615..2f03ec3c 100644 --- a/src/View/Results/Window.py +++ b/src/View/Results/Window.py @@ -1152,7 +1152,6 @@ class ResultsWindow(PamhyrWindow): z = table["Z"][:, profile.global_index] q = table["Q"][:, profile.global_index] v = table["V"][:, profile.global_index] - zfd = table["zfd"][:, profile.global_index] if self._current_results == 2: reach1 = self._results[0].river.reach(self._reach) @@ -1171,8 +1170,8 @@ class ResultsWindow(PamhyrWindow): v2 = table["V"][:, profile2.global_index] if "bed_elevation" in y: - if reach.has_bedload(): - z_min = zfd + if reach.has_bedload() and "zfd" in table: + z_min = table["zfd"][:, profile.global_index] else: z_min = [profile.geometry.z_min()] * len(self._timestamps)