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
+8 -2

No files matched your search

+4 -1
View File
@@ -191,7 +191,10 @@ class PlotKPZ(PamhyrPlot):
def draw_profiles_hs(self, reach):
lhs = filter(
lambda hs: hs._input_reach.reach is reach,
self._study.river.hydraulic_structures.lst
filter(
lambda hs: hs._input_reach is not None,
self._study.river.hydraulic_structures.lst
)
)
for hs in lhs: