Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor RegionProcessor #213

Merged
merged 12 commits into from
Jan 10, 2023

Conversation

phackstock
Copy link
Contributor

Closes #208.
This PR is laying some ground work for the changes discussed today (unifying the Processor.apply() interface to only take an IamDataFrame as input) which will be added in a follow up PR.

Changes

A few internal changes to the way region processing is done. Moving a few helper functions into the corresponding classes and using the VariableCode object directly instead of serializing it into a dictionary.

@phackstock phackstock self-assigned this Jan 9, 2023
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.

Looks good to me in principle, a few minor suggestions inline...

nomenclature/code.py Outdated Show resolved Hide resolved
nomenclature/processor/region.py Outdated Show resolved Hide resolved
nomenclature/codelist.py Outdated Show resolved Hide resolved
nomenclature/codelist.py Show resolved Hide resolved
nomenclature/codelist.py Outdated Show resolved Hide resolved
@phackstock phackstock merged commit 387cb8a into IAMconsortium:main Jan 10, 2023
@phackstock phackstock deleted the refactor/region-processor branch January 10, 2023 16:00
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.

Clean up region processing after moving to VariableCode(Lists)
2 participants