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

Import (region) definitions from other repository #264

Merged

Conversation

danielhuppmann
Copy link
Member

This PR adds an option to import a list of codes from another repository, via an attribute repository in the general-config of a DataStructureDefinition (currently only implemented and tested for the RegionCodeList).

To be further discussed for the configuration and use cases:

  1. The current implementation assumes that an external repository is cloned at the same level as the workflow repository, i.e., to import "common-definitions" into "openentrance", both repositories have to be cloned at the same directory-level. The argument in config would have to read:

    region:
      repository: common-definitions/definitions/region
  2. The current implementation imports all definitions from the other repository. We can think about adding filters or explicit lists later (once actually needed).

Copy link
Contributor

@phackstock phackstock left a comment

Choose a reason for hiding this comment

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

Just a tiny question, other than that good to merge from my side.

nomenclature/codelist.py Show resolved Hide resolved
@danielhuppmann danielhuppmann merged commit 7cccbd3 into IAMconsortium:main Jul 20, 2023
@danielhuppmann danielhuppmann deleted the feature/import-repository branch July 20, 2023 05:15
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