Skip to content

Renaming Production|Steel in legacy projects to Production|Iron and Steel|Steel#348

Closed
PhilippVerpoort wants to merge 1 commit intoIAMconsortium:mainfrom
PhilippVerpoort:fix/add-variable-legacy-cleanup
Closed

Renaming Production|Steel in legacy projects to Production|Iron and Steel|Steel#348
PhilippVerpoort wants to merge 1 commit intoIAMconsortium:mainfrom
PhilippVerpoort:fix/add-variable-legacy-cleanup

Conversation

@PhilippVerpoort
Copy link

The variable Production|Steel from SHAPE is not mapped to Production|Iron and Steel|Steel. This is a problem in projects relying on common-definitions that try to import scenarios from legacy projects.

It should be possible to resolve this by adding a variable-cleanup.yml in the legacy subdirectory, as suggested by this PR.

This PR is based on discussions in #338.

* Creates file `variable-cleanup.yml` in `legacy` subdirectory.
* Adds mapping of `Production|Steel` to `Production|Iron and
  Steel|Steel` as a first example.
@PhilippVerpoort PhilippVerpoort changed the title Renaming Production|Steel in legacy project(s) to Production|Iron and Steel|Steel Renaming Production|Steel in legacy projects to Production|Iron and Steel|Steel Oct 3, 2025
@PhilippVerpoort PhilippVerpoort marked this pull request as ready for review October 3, 2025 14:28
@danielhuppmann
Copy link
Member

Thanks @PhilippVerpoort, this is ok. Should I merge or do you want to add more items to this PR?

@PhilippVerpoort
Copy link
Author

Please merge this one. I will create additional PRs for my other items.

Copy link
Member

@danielhuppmann danielhuppmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The provided mapping is not correct, see below.

dimension: variable
rename:
# Variable `Production|Steel` isn't correctly mapped to `Production|Iron and Steel|Steel` in SHAPE.
- "Production|Steel": "Production|Iron and Steel|Steel"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a closer look at the SHAPE database and it seems that they actually used two different variables for steel production: "Production|Steel" is reported only by IMAGE, but "Production|Iron and Steel|Volume" is reported by IMAGE (duplicate reporting) and the other models.

Suggested change
- "Production|Steel": "Production|Iron and Steel|Steel"
- "Production|Iron and Steel|Volume": "Production|Iron and Steel|Steel"

@danielhuppmann
Copy link
Member

Closing in favor of #369

@PhilippVerpoort PhilippVerpoort deleted the fix/add-variable-legacy-cleanup branch December 5, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants