1
- """Atomic reporting computations for MESSAGEix-GLOBIOM."""
1
+ """Atomic reporting operations for MESSAGEix-GLOBIOM."""
2
2
import itertools
3
3
import logging
4
4
from typing import Any , List , Optional , Set , Union
@@ -46,7 +46,7 @@ def get_ts(
46
46
47
47
Corresponds to :meth:`ixmp.Scenario.timeseries`.
48
48
49
- .. todo:: move upstream, e.g. to :mod:`ixmp` alongside :func:`.store_ts`.
49
+ .. todo:: Move upstream, e.g. to :mod:`ixmp` alongside :func:`.store_ts`.
50
50
"""
51
51
filters = filters or dict ()
52
52
@@ -95,7 +95,7 @@ def make_output_path(config, name):
95
95
def model_periods (y : List [int ], cat_year : pd .DataFrame ) -> List [int ]:
96
96
"""Return the elements of `y` beyond the firstmodelyear of `cat_year`.
97
97
98
- .. todo:: move upstream, to :mod:`message_ix`.
98
+ .. todo:: Move upstream, to :mod:`message_ix`.
99
99
"""
100
100
return list (
101
101
filter (
@@ -114,10 +114,10 @@ def remove_ts(
114
114
) -> None :
115
115
"""Remove all time series data from `scenario`.
116
116
117
- .. todo:: improve to provide the option to remove only those periods in the model
117
+ .. todo:: Improve to provide the option to remove only those periods in the model
118
118
horizon.
119
119
120
- .. todo:: move upstream, e.g. to :mod:`ixmp` alongside :func:`.store_ts`.
120
+ .. todo:: Move upstream, e.g. to :mod:`ixmp` alongside :func:`.store_ts`.
121
121
"""
122
122
data = scenario .timeseries ()
123
123
N = len (data )
@@ -149,7 +149,7 @@ def remove_ts(
149
149
# def from_url(url: str) -> message_ix.Scenario:
150
150
# """Return a :class:`message_ix.Scenario` given its `url`.
151
151
#
152
- # .. todo:: move upstream to :mod:`message_ix.reporting`.
152
+ # .. todo:: Move upstream to :mod:`message_ix.reporting`.
153
153
# .. todo:: Create a similar method in :mod:`ixmp.reporting` to load and return
154
154
# :class:`ixmp.TimeSeries` (or :class:`ixmp.Scenario`) given its `url`.
155
155
# """
0 commit comments