Export csv results: fix export flowrate as a function of time, on a study without sediments transport

new_design_pol
JeaDylan 2026-08-27 13:20:08 +02:00
parent c95de5e606
commit e19eeedcc3
1 changed files with 2 additions and 3 deletions

View File

@ -1152,7 +1152,6 @@ class ResultsWindow(PamhyrWindow):
z = table["Z"][:, profile.global_index] z = table["Z"][:, profile.global_index]
q = table["Q"][:, profile.global_index] q = table["Q"][:, profile.global_index]
v = table["V"][:, profile.global_index] v = table["V"][:, profile.global_index]
zfd = table["zfd"][:, profile.global_index]
if self._current_results == 2: if self._current_results == 2:
reach1 = self._results[0].river.reach(self._reach) reach1 = self._results[0].river.reach(self._reach)
@ -1171,8 +1170,8 @@ class ResultsWindow(PamhyrWindow):
v2 = table["V"][:, profile2.global_index] v2 = table["V"][:, profile2.global_index]
if "bed_elevation" in y: if "bed_elevation" in y:
if reach.has_bedload(): if reach.has_bedload() and "zfd" in table:
z_min = zfd z_min = table["zfd"][:, profile.global_index]
else: else:
z_min = [profile.geometry.z_min()] * len(self._timestamps) z_min = [profile.geometry.z_min()] * len(self._timestamps)