From b7683297ba674414dbb3dd465225c1fab27115de Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Mon, 18 Nov 2024 10:56:20 +0100 Subject: [PATCH] Ensure commodity codes for transport build --- message_ix_models/model/transport/build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/message_ix_models/model/transport/build.py b/message_ix_models/model/transport/build.py index 181c8b74cb..a34f28a02b 100644 --- a/message_ix_models/model/transport/build.py +++ b/message_ix_models/model/transport/build.py @@ -411,6 +411,10 @@ def get_computer( config.with_scenario = config.with_solution = False + # Ensure that members of e.g. base_model_info.set["commodity"] are Code objects with + # their respective annotations + config.base_model_info.substitute_codes() + # Create a Computer c = obj or Computer()