Skip to content

Commit

Permalink
Update reporter node count in tests, tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Sep 1, 2023
1 parent baa5383 commit 60fb21c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion message_ix/tests/test_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_reporter_from_scenario(message_test_mp):

# message_ix.Reporter pre-populated with additional, derived quantities
# This is the same value as in test_tutorials.py
assert len(rep.graph) == 13074
assert len(rep.graph) == 13076

# Derived quantities have expected dimensions
vom_key = rep.full_key("vom")
Expand Down
2 changes: 1 addition & 1 deletion message_ix/tests/test_tutorials.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _t(group: Union[str, None], basename: str, *, check=None, marks=None):
_t("w0", f"{W}_historical_new_capacity"),
_t("w0", f"{W}_multinode"),
# NB this is the same value as in test_reporter()
_t(None, f"{W}_report", check=[("len-rep-graph", 13074)]),
_t(None, f"{W}_report", check=[("len-rep-graph", 13076)]),
_t("at0", "austria", check=[("solve-objective-value", 206321.90625)]),
_t("at0", "austria_single_policy", check=[("solve-objective-value", 205310.34375)]),
_t("at0", "austria_multiple_policies"),
Expand Down
4 changes: 2 additions & 2 deletions tutorial/westeros/westeros_report.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Almost 12,700 nodes!\n",
"Over 13,000 nodes!\n",
"\n",
"Remember: `rep` simply *describes* these operations; none of them is executed until or unless you `get()` them.\n",
"\n",
Expand Down Expand Up @@ -535,7 +535,7 @@
"- This node returns the same Scenario object we passed to `Reporter.from_scenario()`.\n",
"\n",
"In short, if we run this cell, the Reporter will extract a 6-dimensional quantity from the Scenario object and return it.\n",
"The other >12,000 nodes will not be computed.\n",
"The other >13,000 nodes will not be computed.\n",
"\n",
"Let's try:"
]
Expand Down

0 comments on commit 60fb21c

Please sign in to comment.