pep8: Change to respect pep8 code style.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-12-11 14:40:54 +01:00
1 parent 1ab1cb37b0
commit eea355a784
31 files changed
+169 -98

No files matched your search

+6 -7
View File
@@ -82,13 +82,13 @@ class HydraulicStructuresWindow(PamhyrWindow):
trad=self._trad,
data=self._study.river,
parent=self,
mode = "reaches"
mode="reaches"
)
self._delegate_kp = ComboBoxDelegate(
trad=self._trad,
data=self._study.river,
parent=self,
mode = "kp"
mode="kp"
)
table = self.find(QTableView, f"tableView")
@@ -160,7 +160,7 @@ class HydraulicStructuresWindow(PamhyrWindow):
def setup_connections(self):
self.find(QAction, "action_add").triggered.connect(self.add)
self.find(QAction, "action_delete").triggered.connect(self.delete)
#self.find(QAction, "action_edit").triggered.connect(self.edit)
# self.find(QAction, "action_edit").triggered.connect(self.edit)
self._checkbox.clicked.connect(self._set_structure_state)
table = self.find(QTableView, "tableView")
@@ -175,7 +175,7 @@ class HydraulicStructuresWindow(PamhyrWindow):
table = self.find(QTableView, "tableView")
r = table.selectionModel().selectedRows()
if len(r)>0:
if len(r) > 0:
return r[0]
else:
return None
@@ -184,7 +184,7 @@ class HydraulicStructuresWindow(PamhyrWindow):
table = self.find(QTableView, "tableView")
r = table.selectionModel().selectedRows()
if len(r)>0:
if len(r) > 0:
return r[0].row()
else:
return None
@@ -270,7 +270,7 @@ class HydraulicStructuresWindow(PamhyrWindow):
if len(rows) > 0 and len(self._hs_lst) > 0:
reach = self._hs_lst.get(rows[0]).input_reach
else:
reach=None
reach = None
self.plot_kpc.clear()
self.plot_ac.clear()
return
@@ -291,7 +291,6 @@ class HydraulicStructuresWindow(PamhyrWindow):
self.plot_ac.clear()
return
if profile is not None:
self.plot_kpc.set_profile(profile[0])
self.plot_ac.set_profile(profile[0])