mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
work on hydraulic structures
This commit is contained in:
1 parent
f302e18d71
commit
7db65f127e
7 files changed
+56
-17
No files matched your search
@@ -122,11 +122,22 @@ class BasicHydraulicStructuresWindow(PamhyrWindow):
|
||||
self.plot_layout.addWidget(self.toolbar)
|
||||
self.plot_layout.addWidget(self.canvas)
|
||||
|
||||
reach = self._hs.input_reach
|
||||
profile_kp = self._hs.input_kp
|
||||
if profile_kp is not None:
|
||||
profiles = reach.reach.get_profiles_from_kp(float(profile_kp))
|
||||
else:
|
||||
profiles = None
|
||||
if profiles is not None:
|
||||
profile = profiles[0]
|
||||
else:
|
||||
profile = None
|
||||
|
||||
self.plot_ac = PlotAC(
|
||||
canvas=self.canvas,
|
||||
river=self._study.river,
|
||||
reach=None,
|
||||
profile=None,
|
||||
reach=self._hs.input_reach,
|
||||
profile=profile,
|
||||
toolbar=self.toolbar
|
||||
)
|
||||
self.plot_ac.draw()
|
||||
|
||||
Reference in new issue
Block a user