From 5226836211d0b8bc96c44351d7958694d53c3f91 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr> Date: Wed, 14 Feb 2024 17:03:05 +0100 Subject: [PATCH] Pamhyr: Fix Pep8. --- src/View/Tools/PamhyrPlot.py | 7 +++---- src/View/Tools/Plot/PamhyrToolbar.py | 5 ++--- src/tools.py | 1 + 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/View/Tools/PamhyrPlot.py b/src/View/Tools/PamhyrPlot.py index d37ca44e..5d398815 100644 --- a/src/View/Tools/PamhyrPlot.py +++ b/src/View/Tools/PamhyrPlot.py @@ -36,9 +36,9 @@ class PamhyrPlot(APlot): colors = list(mplcolors.TABLEAU_COLORS) plot_default_kargs = { - "lw" : 1., - "markersize" : 3, - "marker" : "+", + "lw": 1., + "markersize": 3, + "marker": "+", } def __init__(self, data=None, @@ -181,7 +181,6 @@ class PamhyrPlot(APlot): self.toolbar_update() - def toolbar_update(self): if self._toolbar is not None: self._toolbar.update() diff --git a/src/View/Tools/Plot/PamhyrToolbar.py b/src/View/Tools/Plot/PamhyrToolbar.py index 90afad12..4455078b 100644 --- a/src/View/Tools/Plot/PamhyrToolbar.py +++ b/src/View/Tools/Plot/PamhyrToolbar.py @@ -91,7 +91,6 @@ class PamhyrPlotToolbar(NavigationToolbar2QT): def add_tool_separator(self): self.toolitems.append((None, None, None, None)) - def init_tool_home(self): self.toolitems.append( ( @@ -171,9 +170,9 @@ class PamhyrPlotToolbar(NavigationToolbar2QT): icon_btn_global_view = QtGui.QIcon() icon_btn_global_view.addPixmap( QtGui.QPixmap( - os.path.abspath( + os.path.abspath( f"{file_path}/../../ui/ressources/zoom_fit.png" - ) + ) ) ) diff --git a/src/tools.py b/src/tools.py index 35ea2fb5..98fae105 100644 --- a/src/tools.py +++ b/src/tools.py @@ -250,6 +250,7 @@ def old_pamhyr_date_to_timestamp(date: str): return ts + ####################### # COMMAND LINE PARSER # ####################### -- GitLab