Skip to content

Commit

Permalink
Pylint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlee94 committed Jun 6, 2024
1 parent 2be7624 commit fab2a38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions idaes/core/scaling/autoscaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@

from pyomo.environ import (
Block,
check_optimal_termination,
ConcreteModel,
Constraint,
SolverFactory,
TransformationFactory,
value,
Var,
)
Expand Down
6 changes: 3 additions & 3 deletions idaes/core/scaling/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,14 @@ def _set_block_suffixes_from_dict(


def _suffix_to_dict(suffix):
dict = {}
sdict = {}

for k, v in suffix.items():
# Record components by their local name so we can use
# find_Component to retrieve them later
dict[k.local_name] = v
sdict[k.local_name] = v

return dict
return sdict


def _suffix_from_dict(suffix, json_dict, verify_names=True, overwrite=False):
Expand Down

0 comments on commit fab2a38

Please sign in to comment.