From c325f61fceb06251566e887edbd6252530d2d90b Mon Sep 17 00:00:00 2001 From: Theophile Terraz <theophile.terraz@inrae.fr> Date: Tue, 4 Feb 2025 13:58:50 +0100 Subject: [PATCH] debug --- src/View/Results/CustomPlot/Plot.py | 1 - src/View/Results/Window.py | 6 +++--- src/View/Translate.py | 3 ++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/View/Results/CustomPlot/Plot.py b/src/View/Results/CustomPlot/Plot.py index e67a6ea6..7bc88998 100644 --- a/src/View/Results/CustomPlot/Plot.py +++ b/src/View/Results/CustomPlot/Plot.py @@ -170,7 +170,6 @@ class CustomPlot(PamhyrPlot): return ts_z_min def _draw_rk(self): - #for res_id in self._current_res_id: results = self.data[self._current_res_id] reach = results.river.reach(self._reach) if self._current_res_id == 2: # compare results diff --git a/src/View/Results/Window.py b/src/View/Results/Window.py index 6616ac8b..ccdd131c 100644 --- a/src/View/Results/Window.py +++ b/src/View/Results/Window.py @@ -683,7 +683,7 @@ class ResultsWindow(PamhyrWindow): ) def export_to(self, filename, x, y, envelop): - results = self._results[self._current_results] + results = self._results[self._current_results[0]] reach = results.river.reachs[self._get_current_reach()] first_line = [f"Study: {results.study.name}", f"Reach: {reach.name}"] @@ -753,7 +753,7 @@ class ResultsWindow(PamhyrWindow): tab_widget.removeTab(index) def _export_rk(self, timestamp, y, envelop): - results = self._results[self._current_results] + results = self._results[self._current_results[0]] reach = results.river.reachs[self._get_current_reach()] dict_x = self._trad.get_dict("values_x") dict_y = self._trad.get_dict("values_y") @@ -998,7 +998,7 @@ class ResultsWindow(PamhyrWindow): return my_dict def _export_time(self, profile, y): - results = self._results[self._current_results] + results = self._results[self._current_results[0]] reach = results.river.reachs[self._get_current_reach()] profile = reach.profile(profile) dict_x = self._trad.get_dict("values_x") diff --git a/src/View/Translate.py b/src/View/Translate.py index 3abf9b9c..25664fcf 100644 --- a/src/View/Translate.py +++ b/src/View/Translate.py @@ -106,7 +106,8 @@ class UnitTranslate(CommonWordTranslate): self._dict["unit_min_velocity"] = _translate( "Unit", "Min Velocity (m/s)" ) - self._dict["unit_discharge"] = _translate("Unit", "Discharge") + " (m³/s)" + self._dict["unit_discharge"] = _translate( + "Unit", "Discharge") + f" (m³/s)" self._dict["unit_discharge_envelop"] = _translate( "Unit", "Discharge Envelop") + " (m³/s)" self._dict["unit_max_discharge"] = _translate( -- GitLab