Skip to content

Commit

Permalink
Forgot black on Bethany's changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
smartin71 committed Aug 20, 2024
1 parent 0545ecf commit d432500
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyomo/contrib/parmest/utils/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def convert_params_to_vars(model, param_CUIDs=None, fix_vars=False):

# get indexed Params
param_theta_objects = list(theta_object.values())

# get indexed Param CUIDs
indexed_param_CUIDs.extend(
ComponentUID(theta_obj) for theta_obj in theta_object.values()
Expand Down Expand Up @@ -135,7 +135,8 @@ def convert_params_to_vars(model, param_CUIDs=None, fix_vars=False):

# Convert Params to Vars in Expressions
for expr in model.component_data_objects(pyo.Expression):
if any(ComponentUID(v) in param_CUIDs_set
if any(
ComponentUID(v) in param_CUIDs_set
for v in identify_mutable_parameters(expr)
):
new_expr = replace_expressions(expr=expr, substitution_map=substitution_map)
Expand Down

0 comments on commit d432500

Please sign in to comment.