Skip to content

Commit

Permalink
Formating and black
Browse files Browse the repository at this point in the history
  • Loading branch information
keileg committed May 10, 2019
1 parent 2f6c6a9 commit f227fb9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/porepy/numerics/mixed_dim/assembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ def __init__(self, gb, active_variables=None):
accordingly.
NOTE: For edge coupling terms where the edge variable is defined
as active, all involved node variables must also be active.
Raises:
ValueError: If an edge_coupling is defined with an active edge variable
but with an inactive node variable.
"""
self.gb = gb

Expand Down Expand Up @@ -751,15 +751,15 @@ def _local_variables(self, d):

def _is_active_variable(self, key):
""" Check if a key denotes an active variable
Parameters:
key (str): Variable identifier.
active_variables (list of str, or str): Active variables.
Returns:
boolean: True if key is in active_variables, or active_variables
is None.
"""
if self.active_variables is None:
return True
Expand Down
6 changes: 3 additions & 3 deletions test/unit/test_assembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def test_single_variable_not_active(self):
def test_explicitly_define_edge_variable_active(self):
""" Explicitly define edge and node variables as active. The result should
be the same as if no active variable was defined.
"""

gb = self.define_gb()
Expand Down Expand Up @@ -263,7 +263,7 @@ def test_explicitly_define_edge_variable_active(self):
def test_define_edge_variable_inactive(self):
""" Define edge-variable as inactive. The resulting system should have
no coupling term.
"""

gb = self.define_gb()
Expand Down Expand Up @@ -304,7 +304,7 @@ def test_define_edge_variable_inactive(self):
def test_define_edge_variable_active_node_variable_inactive(self):
""" Define edge-variable as inactive. The resulting system should have
no coupling term.
"""

gb = self.define_gb()
Expand Down
5 changes: 3 additions & 2 deletions test/unit/test_darcy_mortar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ def run_mpfa(self, gb):
key = "flow"
method = pp.Mpfa(key)
self._solve(gb, method, key)

def run_vem(self, gb):
key = "flow"
method = pp.MVEM(key)
Expand Down Expand Up @@ -1294,5 +1294,6 @@ def test_RT0_refined_1d(self):
self.run_RT0(gb)
self.verify_cv(gb)


if __name__ == "__main__":
unittest.main()
unittest.main()

0 comments on commit f227fb9

Please sign in to comment.