compare_results
Theophile Terraz 2024-09-25 18:02:40 +02:00
parent 0e114fa7bb
commit 45e56e53a4
1 changed files with 5 additions and 2 deletions

View File

@ -224,8 +224,11 @@ class EditBoundaryConditionWindow(PamhyrWindow):
self._d50sigma.sigmaChanged.connect(self.sigma_changed)
def setup_dialog(self):
if len(self._data.reach(self._study.river)) > 0:
reach = self._data.reach(self._study.river)[0]
self.slope_value = abs(reach.get_incline_median_mean())
else:
self.slope_value = 0.0
def d50_changed(self, value):
self._undo_stack.push(