Skip to content

Commit

Permalink
Update log info for nexus and cooling functions
Browse files Browse the repository at this point in the history
  • Loading branch information
adrivinca committed Dec 2, 2024
1 parent ce5ec04 commit 06164bf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion message_ix_models/model/water/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def water_ini(context: "Context", regions, time):
help="Defines whether the model solves with macro",
)
@common_params("regions")
@scenario_param("--ssp")
def nexus_cli(context: "Context", regions, rcps, sdgs, rels, macro=False):
"""
Add basin structure connected to the energy sector and
Expand Down Expand Up @@ -157,7 +158,10 @@ def nexus(context: "Context", regions, rcps, sdgs, rels, macro=False):
context.SDG = sdgs
context.REL = rels

log.info(f"RCP assumption is {context.RCP}. SDG is {context.SDG}")
log.info(
f"SSP assumption is {context.ssp}. SDG is {context.SDG}. "
f"RCP is {context.RCP}. REL is {context.REL}."
)

from .build import main as build

Expand Down Expand Up @@ -247,6 +251,11 @@ def cooling(context, regions, rcps, rels):
context.RCP = rcps
context.REL = rels

log.info(
f"SSP assumption is {context.ssp}. "
f"RCP is {context.RCP}. REL is {context.REL}."
)

from .build import main as build

# Determine the output scenario name based on the --url CLI option. If the
Expand Down

0 comments on commit 06164bf

Please sign in to comment.