Commit e066c6ab authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Pamhyr2: Fix pep8.

Showing with 10 additions and 2 deletions
+10 -2
...@@ -29,6 +29,7 @@ _translate = QCoreApplication.translate ...@@ -29,6 +29,7 @@ _translate = QCoreApplication.translate
logger = logging.getLogger() logger = logging.getLogger()
class StudyNetworkReachChecker(AbstractModelChecker): class StudyNetworkReachChecker(AbstractModelChecker):
def __init__(self): def __init__(self):
super(StudyNetworkReachChecker, self).__init__() super(StudyNetworkReachChecker, self).__init__()
...@@ -96,6 +97,7 @@ class StudyGeometryChecker(AbstractModelChecker): ...@@ -96,6 +97,7 @@ class StudyGeometryChecker(AbstractModelChecker):
self._status = status self._status = status
return ok return ok
class StudyInitialConditionsChecker(AbstractModelChecker): class StudyInitialConditionsChecker(AbstractModelChecker):
def __init__(self): def __init__(self):
super(StudyInitialConditionsChecker, self).__init__() super(StudyInitialConditionsChecker, self).__init__()
...@@ -144,6 +146,7 @@ class StudyInitialConditionsChecker(AbstractModelChecker): ...@@ -144,6 +146,7 @@ class StudyInitialConditionsChecker(AbstractModelChecker):
return ok return ok
class StudyBoundaryConditionChecker(AbstractModelChecker): class StudyBoundaryConditionChecker(AbstractModelChecker):
def __init__(self): def __init__(self):
super(StudyBoundaryConditionChecker, self).__init__() super(StudyBoundaryConditionChecker, self).__init__()
...@@ -190,8 +193,12 @@ class StudyBoundaryConditionChecker(AbstractModelChecker): ...@@ -190,8 +193,12 @@ class StudyBoundaryConditionChecker(AbstractModelChecker):
bcs_nodes = set(map(lambda bc: bc.node, bcs)) bcs_nodes = set(map(lambda bc: bc.node, bcs))
upstream_ok = self.check_liquid_all_node_has_bc(bcs_nodes, upstream) upstream_ok = self.check_liquid_all_node_has_bc(
downstream_ok = self.check_liquid_all_node_has_bc(bcs_nodes, downstream) bcs_nodes, upstream
)
downstream_ok = self.check_liquid_all_node_has_bc(
bcs_nodes, downstream
)
ok = upstream_ok and downstream_ok ok = upstream_ok and downstream_ok
......
...@@ -141,6 +141,7 @@ class Modules(IterableFlag): ...@@ -141,6 +141,7 @@ class Modules(IterableFlag):
return set(res) return set(res)
_impact = { _impact = {
Modules.NETWORK: [ Modules.NETWORK: [
Modules.GEOMETRY, Modules.BOUNDARY_CONDITION, Modules.GEOMETRY, Modules.BOUNDARY_CONDITION,
......
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