mirror of https://gitlab.com/pamhyr/pamhyr2
Export csv results: fix export flowrate as a function of time, on a study without sediments transport
parent
defcb3af84
commit
2d7409debb
|
|
@ -1150,7 +1150,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)
|
||||
|
|
@ -1169,8 +1168,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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue