mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Translate: Rename KP to RK (River Kilometric).
This commit is contained in:
1 parent
b83494888b
commit
46dc527222
66 files changed
+668
-614
No files matched your search
+11
-11
@@ -48,7 +48,7 @@ from View.Tools.Plot.PamhyrToolbar import PamhyrPlotToolbar
|
||||
|
||||
from View.Results.PlotXY import PlotXY
|
||||
from View.Results.PlotAC import PlotAC
|
||||
from View.Results.PlotKPC import PlotKPC
|
||||
from View.Results.PlotRKC import PlotRKC
|
||||
from View.Results.PlotH import PlotH
|
||||
from View.Results.PlotSedReach import PlotSedReach
|
||||
from View.Results.PlotSedProfile import PlotSedProfile
|
||||
@@ -193,7 +193,7 @@ class ResultsWindow(PamhyrWindow):
|
||||
self.plot_layout_2.addWidget(self.toolbar_2)
|
||||
self.plot_layout_2.addWidget(self.canvas_2)
|
||||
|
||||
self.plot_kpc = PlotKPC(
|
||||
self.plot_rkc = PlotRKC(
|
||||
canvas=self.canvas_2,
|
||||
results=self._results,
|
||||
reach_id=0,
|
||||
@@ -201,7 +201,7 @@ class ResultsWindow(PamhyrWindow):
|
||||
trad=self._trad,
|
||||
toolbar=self.toolbar_2
|
||||
)
|
||||
self.plot_kpc.draw()
|
||||
self.plot_rkc.draw()
|
||||
|
||||
self.canvas_3 = MplCanvas(width=5, height=4, dpi=100)
|
||||
self.canvas_3.setObjectName("canvas_3")
|
||||
@@ -283,7 +283,7 @@ class ResultsWindow(PamhyrWindow):
|
||||
else:
|
||||
profile = reach.reach.profile(indexes[0].row())
|
||||
|
||||
pname = profile.name if profile.name != "" else profile.kp
|
||||
pname = profile.name if profile.name != "" else profile.rk
|
||||
|
||||
return (f"Reach: {reach.name} | " +
|
||||
f"Profile: {pname} | " +
|
||||
@@ -372,7 +372,7 @@ class ResultsWindow(PamhyrWindow):
|
||||
if reach_id is not None:
|
||||
self.plot_xy.set_reach(reach_id)
|
||||
self.plot_ac.set_reach(reach_id)
|
||||
self.plot_kpc.set_reach(reach_id)
|
||||
self.plot_rkc.set_reach(reach_id)
|
||||
self.plot_h.set_reach(reach_id)
|
||||
|
||||
for plot in self._additional_plot:
|
||||
@@ -384,7 +384,7 @@ class ResultsWindow(PamhyrWindow):
|
||||
if profile_id is not None:
|
||||
self.plot_xy.set_profile(profile_id)
|
||||
self.plot_ac.set_profile(profile_id)
|
||||
self.plot_kpc.set_profile(profile_id)
|
||||
self.plot_rkc.set_profile(profile_id)
|
||||
self.plot_h.set_profile(profile_id)
|
||||
|
||||
for plot in self._additional_plot:
|
||||
@@ -395,7 +395,7 @@ class ResultsWindow(PamhyrWindow):
|
||||
if timestamp is not None:
|
||||
self.plot_xy.set_timestamp(timestamp)
|
||||
self.plot_ac.set_timestamp(timestamp)
|
||||
self.plot_kpc.set_timestamp(timestamp)
|
||||
self.plot_rkc.set_timestamp(timestamp)
|
||||
self.plot_h.set_timestamp(timestamp)
|
||||
|
||||
for plot in self._additional_plot:
|
||||
@@ -465,12 +465,12 @@ class ResultsWindow(PamhyrWindow):
|
||||
def _reload_plots(self):
|
||||
self.plot_xy.results = self._results
|
||||
self.plot_ac.results = self._results
|
||||
self.plot_kpc.results = self._results
|
||||
self.plot_rkc.results = self._results
|
||||
self.plot_h.results = self._results
|
||||
|
||||
self.plot_xy.draw()
|
||||
self.plot_ac.draw()
|
||||
self.plot_kpc.draw()
|
||||
self.plot_rkc.draw()
|
||||
self.plot_h.draw()
|
||||
|
||||
def _reload_slider(self):
|
||||
@@ -606,7 +606,7 @@ class ResultsWindow(PamhyrWindow):
|
||||
with open(file_name, 'w', newline='') as csvfile:
|
||||
writer = csv.writer(csvfile, delimiter=',',
|
||||
quotechar='|', quoting=csv.QUOTE_MINIMAL)
|
||||
writer.writerow(["name", "kp", "data-file"])
|
||||
writer.writerow(["name", "rk", "data-file"])
|
||||
for profile in reach.profiles:
|
||||
p_file_name = os.path.join(
|
||||
directory,
|
||||
@@ -615,7 +615,7 @@ class ResultsWindow(PamhyrWindow):
|
||||
|
||||
writer.writerow([
|
||||
profile.name,
|
||||
profile.kp,
|
||||
profile.rk,
|
||||
p_file_name
|
||||
])
|
||||
|
||||
|
||||
Reference in new issue
Block a user