From 134c66d51cc74d94fc77b9dcedc95a4cb22fd882 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr> Date: Tue, 9 Jan 2024 10:20:34 +0100 Subject: [PATCH] Geometry: Fix pep8. --- src/Model/Geometry/Reach.py | 1 - src/View/Geometry/Table.py | 1 - src/View/Geometry/UndoCommand.py | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Model/Geometry/Reach.py b/src/Model/Geometry/Reach.py index 8b61b88a..691c823b 100644 --- a/src/Model/Geometry/Reach.py +++ b/src/Model/Geometry/Reach.py @@ -519,7 +519,6 @@ class Reach(SQLSubModel): self._update_profile_numbers() return imported_profiles - @timer def read_file_st(self, filename): """Read the ST file diff --git a/src/View/Geometry/Table.py b/src/View/Geometry/Table.py index a256291d..cdad1671 100644 --- a/src/View/Geometry/Table.py +++ b/src/View/Geometry/Table.py @@ -198,7 +198,6 @@ class GeometryReachTableModel(PamhyrTableModel): self.layoutAboutToBeChanged.emit() self.layoutChanged.emit() - def duplicate(self, rows, profiles): self.layoutAboutToBeChanged.emit() diff --git a/src/View/Geometry/UndoCommand.py b/src/View/Geometry/UndoCommand.py index 8f5a0cbd..86f3d3ea 100644 --- a/src/View/Geometry/UndoCommand.py +++ b/src/View/Geometry/UndoCommand.py @@ -194,6 +194,7 @@ class DuplicateCommand(QUndoCommand): for profile in self._profiles: self._reach.insert_profile(self._rows[0], profile) + class ImportCommand(QUndoCommand): def __init__(self, reach, row, filename): QUndoCommand.__init__(self) -- GitLab