Skip to content

Commit

Permalink
Apply ruff formatting and change reporting lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
behnam-zakeri committed Oct 17, 2024
1 parent e509494 commit 80ea481
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions message_ix/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,23 +845,25 @@ def initialize(cls, scenario):
)
equ(
"RELATION_EQUIVALENCE_TIME",
"", "time dependent auxiliary equation to simplify the implementation of relations",
)
"",
"time dependent auxiliary equation to simplify the implementation of relations",
)
equ(
"RELATION_EQUIVALENCE_YEAR",
"",
"time dependent auxiliary equation to simplify the implementation of relations at"
" the year level",
)
)
equ(
"RELATION_CONSTRAINT_UP_TIME",
"",
"time dependentupper bound of relations (linear constraints)",
)
)
equ(
"RELATION_CONSTRAINT_LO_TIME",
"",
"time dependent lower bound of relations (linear constraints)")
"time dependent lower bound of relations (linear constraints)",
)
equ(
"RENEWABLES_CAPACITY_REQUIREMENT",
"",
Expand Down
2 changes: 1 addition & 1 deletion message_ix/tests/test_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_reporter_from_scenario(message_test_mp):
rep = Reporter.from_scenario(scen)

# Number of quantities available in a rudimentary MESSAGEix Scenario
assert 268 == len(rep.graph["all"])
assert 281 == len(rep.graph["all"])

# Quantities have short dimension names
assert "demand:n-c-l-y-h" in rep, sorted(rep.graph)
Expand Down

0 comments on commit 80ea481

Please sign in to comment.