Skip to content

Commit

Permalink
arguments on one line to keep black happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbybp committed Mar 8, 2024
1 parent 51594d6 commit b96d12e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
6 changes: 1 addition & 5 deletions pyomo/contrib/incidence_analysis/scc_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@


def generate_strongly_connected_components(
constraints,
variables=None,
include_fixed=False,
igraph=None,
timer=None,
constraints, variables=None, include_fixed=False, igraph=None, timer=None
):
"""Yield in order ``_BlockData`` that each contain the variables and
constraints of a single diagonal block in a block lower triangularization
Expand Down
8 changes: 2 additions & 6 deletions pyomo/util/subsystems.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ def add_local_external_functions(block):
named_expressions = []
visitor = _ExternalFunctionVisitor(descend_into_named_expressions=False)
for comp in block.component_data_objects(
(Constraint, Expression, Objective),
active=True,
(Constraint, Expression, Objective), active=True
):
ef_exprs.extend(visitor.walk_expression(comp.expr))
named_expr_set = ComponentSet(visitor.named_expressions)
Expand Down Expand Up @@ -116,10 +115,7 @@ def add_local_external_functions(block):


def create_subsystem_block(
constraints,
variables=None,
include_fixed=False,
timer=None,
constraints, variables=None, include_fixed=False, timer=None
):
"""This function creates a block to serve as a subsystem with the
specified variables and constraints. To satisfy certain writers, other
Expand Down

0 comments on commit b96d12e

Please sign in to comment.