Skip to content

Commit

Permalink
formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbybp committed Mar 19, 2024
1 parent ae439ad commit be31a20
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pyomo/util/subsystems.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,10 @@ def create_subsystem_block(constraints, variables=None, include_fixed=False):
block.vars = Reference(variables)
block.cons = Reference(constraints)
var_set = ComponentSet(variables)
input_vars = [
var for var in get_vars_from_components(
block, Constraint, include_fixed=include_fixed
)
if var not in var_set
]
input_vars = []
for var in get_vars_from_components(block, Constraint, include_fixed=include_fixed):
if var not in var_set:
input_vars.append(var)
block.input_vars = Reference(input_vars)
add_local_external_functions(block)
return block
Expand Down

0 comments on commit be31a20

Please sign in to comment.