Merge: branch 'master' into 'scenarios'.

This commit is contained in:
parouby committed 2025-08-11 11:12:59 +02:00
commit 74ab3aa522
312 files changed
+82851 -9744

No files matched your search

+20 -3
View File
@@ -47,6 +47,8 @@ from View.Tools.PamhyrWindow import PamhyrWindow
from View.Tools.Plot.PamhyrToolbar import PamhyrPlotToolbar
from View.Tools.Plot.PamhyrCanvas import MplCanvas
from View.SelectReach.Window import SelectReachWindow
from Meshing.Mage import (
MeshingWithMage, MeshingWithMageMailleurTT
)
@@ -207,6 +209,7 @@ class GeometryWindow(PamhyrWindow):
"action_update_rk": self.update_rk,
"action_purge": self.purge,
"action_shift": self.shift,
"action_select_reach": self.select_reach,
}
for action in actions:
@@ -228,9 +231,9 @@ class GeometryWindow(PamhyrWindow):
def _update(self, redraw=False, propagate=True):
if redraw:
self._plot_xy.draw()
self._plot_rkc.draw()
self._plot_ac.draw()
self._plot_xy.redraw(data=self._reach)
self._plot_rkc.redraw(data=self._reach)
self._plot_ac.redraw(data=self._reach)
self.select_current_profile()
@@ -547,6 +550,20 @@ class GeometryWindow(PamhyrWindow):
logger_exception(e)
return
def select_reach(self):
try:
dlg = SelectReachWindow(
study=self._study,
trad=self._trad,
parent=self
)
if dlg.exec():
self._table.change_reach(dlg.reach, self)
except Exception as e:
logger_exception(e)
return
def duplicate(self):
rows = [
row.row() for row in