Skip to content

Commit

Permalink
Apply minimum version to cool_tec
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Sep 10, 2024
1 parent b0c5508 commit 806adc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions message_ix_models/model/water/data/water_for_ppl.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from message_ix_models.util import (
broadcast,
make_matched_dfs,
minimum_version,
package_data_path,
same_node,
)
Expand Down Expand Up @@ -171,6 +172,7 @@ def hist_cap(x: pd.Series, context: "Context", hold_cost: pd.DataFrame) -> list:


# water & electricity for cooling technologies
@minimum_version("message_ix 3.7")
def cool_tech(context: "Context") -> dict[str, pd.DataFrame]:
"""Process cooling technology data for a scenario instance.
The input values of parent technologies are read in from a scenario instance and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from message_ix_models.model.water.data.water_for_ppl import cool_tech, non_cooling_tec


@cool_tech.minimum_version
@pytest.mark.parametrize("RCP", ["no_climate", "6p0"])
def test_cool_tec(request, test_context, RCP):
mp = test_context.get_platform()
Expand Down

0 comments on commit 806adc2

Please sign in to comment.