Commit c325f61f authored by Theophile Terraz's avatar Theophile Terraz
Browse files

debug

No related merge requests found
Showing with 5 additions and 5 deletions
+5 -5
...@@ -170,7 +170,6 @@ class CustomPlot(PamhyrPlot): ...@@ -170,7 +170,6 @@ class CustomPlot(PamhyrPlot):
return ts_z_min return ts_z_min
def _draw_rk(self): def _draw_rk(self):
#for res_id in self._current_res_id:
results = self.data[self._current_res_id] results = self.data[self._current_res_id]
reach = results.river.reach(self._reach) reach = results.river.reach(self._reach)
if self._current_res_id == 2: # compare results if self._current_res_id == 2: # compare results
......
...@@ -683,7 +683,7 @@ class ResultsWindow(PamhyrWindow): ...@@ -683,7 +683,7 @@ class ResultsWindow(PamhyrWindow):
) )
def export_to(self, filename, x, y, envelop): 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()] reach = results.river.reachs[self._get_current_reach()]
first_line = [f"Study: {results.study.name}", first_line = [f"Study: {results.study.name}",
f"Reach: {reach.name}"] f"Reach: {reach.name}"]
...@@ -753,7 +753,7 @@ class ResultsWindow(PamhyrWindow): ...@@ -753,7 +753,7 @@ class ResultsWindow(PamhyrWindow):
tab_widget.removeTab(index) tab_widget.removeTab(index)
def _export_rk(self, timestamp, y, envelop): 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()] reach = results.river.reachs[self._get_current_reach()]
dict_x = self._trad.get_dict("values_x") dict_x = self._trad.get_dict("values_x")
dict_y = self._trad.get_dict("values_y") dict_y = self._trad.get_dict("values_y")
...@@ -998,7 +998,7 @@ class ResultsWindow(PamhyrWindow): ...@@ -998,7 +998,7 @@ class ResultsWindow(PamhyrWindow):
return my_dict return my_dict
def _export_time(self, profile, y): 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()] reach = results.river.reachs[self._get_current_reach()]
profile = reach.profile(profile) profile = reach.profile(profile)
dict_x = self._trad.get_dict("values_x") dict_x = self._trad.get_dict("values_x")
......
...@@ -106,7 +106,8 @@ class UnitTranslate(CommonWordTranslate): ...@@ -106,7 +106,8 @@ class UnitTranslate(CommonWordTranslate):
self._dict["unit_min_velocity"] = _translate( self._dict["unit_min_velocity"] = _translate(
"Unit", "Min Velocity (m/s)" "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( self._dict["unit_discharge_envelop"] = _translate(
"Unit", "Discharge Envelop") + " (m³/s)" "Unit", "Discharge Envelop") + " (m³/s)"
self._dict["unit_max_discharge"] = _translate( self._dict["unit_max_discharge"] = _translate(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment