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

Allow ISO3 codes as string #253

Merged
merged 3 commits into from
May 25, 2023

Conversation

danielhuppmann
Copy link
Member

Trying to implement ISO3 codes for the ECEMF/openENTRANCE project, I realized that the list was overly complicated for a list of countries. So this PR extends the "iso3_codes" attribute to be provided as a string. It also makes the error message slightly more readable by un-listing...

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.

Two small comments other than that good to merge.

nomenclature/code.py Outdated Show resolved Hide resolved
nomenclature/code.py Outdated Show resolved Hide resolved
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.

Looks good to me thanks @danielhuppmann.

@danielhuppmann
Copy link
Member Author

Thanks @phackstock!

Copy link
Contributor

@GretchenSchowalter GretchenSchowalter left a comment

Choose a reason for hiding this comment

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

Yep, looks great!

@danielhuppmann danielhuppmann merged commit b83101f into IAMconsortium:main May 25, 2023
@danielhuppmann danielhuppmann deleted the feature/iso3-as-str branch May 25, 2023 08:26
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.

3 participants