Skip to content

Commit 806adc2

Browse files
committed
Apply minimum version to cool_tec
1 parent b0c5508 commit 806adc2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

message_ix_models/model/water/data/water_for_ppl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from message_ix_models.util import (
1212
broadcast,
1313
make_matched_dfs,
14+
minimum_version,
1415
package_data_path,
1516
same_node,
1617
)
@@ -171,6 +172,7 @@ def hist_cap(x: pd.Series, context: "Context", hold_cost: pd.DataFrame) -> list:
171172

172173

173174
# water & electricity for cooling technologies
175+
@minimum_version("message_ix 3.7")
174176
def cool_tech(context: "Context") -> dict[str, pd.DataFrame]:
175177
"""Process cooling technology data for a scenario instance.
176178
The input values of parent technologies are read in from a scenario instance and

message_ix_models/tests/model/water/data/test_water_for_ppl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from message_ix_models.model.water.data.water_for_ppl import cool_tech, non_cooling_tec
99

1010

11+
@cool_tech.minimum_version
1112
@pytest.mark.parametrize("RCP", ["no_climate", "6p0"])
1213
def test_cool_tec(request, test_context, RCP):
1314
mp = test_context.get_platform()

0 commit comments

Comments
 (0)