Skip to content

Commit

Permalink
Ensure commodity codes for transport build
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Nov 18, 2024
1 parent ce1c65f commit b768329
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions message_ix_models/model/transport/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit b768329

Please sign in to comment.