Geometry, Results: Fix HS display whene not associated.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-05-17 16:41:05 +02:00
1 parent b017127b3a
commit 61fd54c496
2 files changed
+6

No files matched your search

+3
View File
@@ -191,8 +191,11 @@ class PlotKPZ(PamhyrPlot):
def draw_profiles_hs(self, reach):
lhs = filter(
lambda hs: hs._input_reach.reach is reach,
filter(
lambda hs: hs._input_reach is not None,
self._study.river.hydraulic_structures.lst
)
)
for hs in lhs:
x = hs.input_kp
+3
View File
@@ -109,8 +109,11 @@ class PlotKPC(PamhyrPlot):
def draw_profiles_hs(self, reach):
lhs = filter(
lambda hs: hs._input_reach.reach is reach.geometry,
filter(
lambda hs: hs._input_reach is not None,
self.results.study.river.hydraulic_structures.lst
)
)
for hs in lhs:
x = hs.input_kp