From 06164bfeddbce9f724fd50e6ad9592793bfc6ebe Mon Sep 17 00:00:00 2001 From: adrivinca Date: Mon, 2 Dec 2024 11:35:10 +0100 Subject: [PATCH] Update log info for nexus and cooling functions --- message_ix_models/model/water/cli.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/message_ix_models/model/water/cli.py b/message_ix_models/model/water/cli.py index d85176d0f..69ccd6153 100644 --- a/message_ix_models/model/water/cli.py +++ b/message_ix_models/model/water/cli.py @@ -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 @@ -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 @@ -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