Skip to content

Commit

Permalink
Merge pull request #236 from iiasa/wat_SSP_upd1
Browse files Browse the repository at this point in the history
Nexus cooling updates for R12/SSP scenarios
  • Loading branch information
khaeru authored Oct 2, 2024
2 parents 971c211 + 9e6a012 commit 1e5d8d9
Show file tree
Hide file tree
Showing 14 changed files with 2,062 additions and 1,595 deletions.
1 change: 1 addition & 0 deletions doc/whatsnew.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ What's new
Next release
============

- Fix the nexus/cooling function and adding test for checking some input data (:pull:`236`).
- Add :doc:`/project/circeular` project code and documentation (:pull:`232`).
- Update water availability data and major code editing to allow a new test suite for the water module (:pull:`106`).
- Expand :doc:`repro` with sections on :ref:`repro-doc` and :ref:`versioning`, including :ref:`a list of external model names and ‘versions’ <model-names>` like “MESSAGEix-GLOBIOM 2.0” (:issue:`224`, :pull:`226`).
Expand Down
Git LFS file not shown
Git LFS file not shown
4 changes: 2 additions & 2 deletions message_ix_models/data/water/set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ nexus:
- [loil_ppl, cooling__loil_ppl]
- [nuc_hc, cooling__nuc_hc]
- [nuc_lc, cooling__nuc_lc]
- [solar_th_ppl, cooling__solar_th_ppl]
# - [solar_th_ppl, cooling__solar_th_ppl]


cat_addon:
Expand Down Expand Up @@ -908,7 +908,7 @@ cooling:
- [loil_ppl, cooling__loil_ppl]
- [nuc_hc, cooling__nuc_hc]
- [nuc_lc, cooling__nuc_lc]
- [solar_th_ppl, cooling__solar_th_ppl]
# - [solar_th_ppl, cooling__solar_th_ppl]


cat_addon:
Expand Down
32 changes: 28 additions & 4 deletions message_ix_models/model/water/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,20 @@ def water_ini(context: "Context", regions, time):

@cli.command("nexus")
@click.pass_obj
@click.option("--rcps", default="6p0", type=click.Choice(_RCPS))
@click.option("--rels", default="low", type=click.Choice(_REL))
@click.option(
"--rcps",
default="no_climate",
type=click.Choice(_RCPS),
show_default=True,
help="Specifies the climate scenario used ['no_climate','6p0','2p6']",
)
@click.option(
"--rels",
default="low",
type=click.Choice(_REL),
show_default=True,
help="Specifies the reliability of hydrological data ['low','mid','high']",
)
@click.option(
"--sdgs",
default="baseline",
Expand Down Expand Up @@ -194,8 +206,20 @@ def nexus(context: "Context", regions, rcps, sdgs, rels, macro=False):

@cli.command("cooling")
@common_params("regions")
@click.option("--rcps", type=click.Choice(_RCPS))
@click.option("--rels", type=click.Choice(_REL))
@click.option(
"--rcps",
default="no_climate",
type=click.Choice(_RCPS),
show_default=True,
help="Specifies the climate scenario used ['no_climate','6p0','2p6']",
)
@click.option(
"--rels",
default="low",
type=click.Choice(_REL),
show_default=True,
help="Specifies the reliability of hydrological data ['low','mid','high']",
)
@click.pass_obj
def cooling_cli(context, regions, rcps, rels):
"""Build and solve model with new cooling technologies."""
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 1e5d8d9

Please sign in to comment.