From 80ea481210084ab422606105f70a1bb968dea6a7 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 17 Oct 2024 12:48:46 +0200 Subject: [PATCH] Apply ruff formatting and change reporting lengths --- message_ix/models.py | 12 +++++++----- message_ix/tests/test_report.py | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/message_ix/models.py b/message_ix/models.py index 3f2950ae3..9dde22559 100644 --- a/message_ix/models.py +++ b/message_ix/models.py @@ -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", "", diff --git a/message_ix/tests/test_report.py b/message_ix/tests/test_report.py index 9523a23fe..fdd19ea65 100644 --- a/message_ix/tests/test_report.py +++ b/message_ix/tests/test_report.py @@ -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)