Skip to content

Commit

Permalink
Apply black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
OFR-IIASA committed Dec 21, 2021
1 parent 14e6402 commit 652b132
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions message_ix/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def item(ix_type, expr):
),
"bound_emission_pool_lo": dict(
ix_type="par", idx_sets=["node", "type_emission", "type_tec", "year"]
),
),
"bound_extraction_up": item("par", "n c g y"),
"bound_new_capacity_lo": item("par", "nl t yv"),
"bound_new_capacity_up": item("par", "nl t yv"),
Expand Down Expand Up @@ -433,9 +433,11 @@ def enforce(scenario):
# handled in JDBCBackend. For the moment, this code does not backstop that
# behaviour.
# TODO Extend to handle all masks, e.g. for new backends.
for par_name in ("bound_emission_pool_up",
"bound_emission_pool_lo",
"emission_sink_rate"):
for par_name in (
"bound_emission_pool_up",
"bound_emission_pool_lo",
"emission_sink_rate",
):
# Name of the corresponding set
set_name = f"is_{par_name}"

Expand Down

0 comments on commit 652b132

Please sign in to comment.