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

pep8

No related merge requests found
Pipeline #58499 passed with stages
in 3 minutes and 21 seconds
Showing with 9 additions and 4 deletions
+9 -4
......@@ -444,7 +444,7 @@ class Rubar3(CommandLineSolver):
z = data[profile.rk][0]
q = data[profile.rk][1]
#height = z - profile.z_min()
# height = z - profile.z_min()
speed = profile.speed(q, z)
return z, speed
......
......@@ -36,7 +36,12 @@ class DischargeDialog(PamhyrDialog):
_pamhyr_ui = "InitialConditions_Dialog_Generator_Discharge"
_pamhyr_name = "Discharge"
def __init__(self, value, option, title="Discharge", trad=None, parent=None):
def __init__(self,
value,
option,
title="Discharge",
trad=None,
parent=None):
super(DischargeDialog, self).__init__(
title=trad[self._pamhyr_name],
options=[],
......
......@@ -58,9 +58,9 @@ class HeightDialog(PamhyrDialog):
self.cb.clicked.connect(self.enable_discharge)
def enable_discharge(self):
l = self.find(QLabel, "label_3")
label = self.find(QLabel, "label_3")
self.sb3.setEnabled(self.cb.isChecked())
l.setEnabled(self.cb.isChecked())
label.setEnabled(self.cb.isChecked())
def accept(self):
self.values[0] = self.sb1.value()
......
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