Skip to content

Use region ISO3 instead of name for data fetching - #131

Merged
tuyenhn merged 7 commits into
mainfrom
use-iso3-for-data-fetching
Jun 4, 2026
Merged

tuyenhn merged 7 commits into
mainfrom
use-iso3-for-data-fetching

Conversation

@tuyenhn

@tuyenhn tuyenhn commented May 14, 2026

Copy link
Copy Markdown
Collaborator

When initialising a ReanalysisSingleLevels object, if the region name isn't a valid ISO3 value, set the name_without_admin to the ISO3 value instead. This allows subsequent checks for existing data to match against the parent ISO3.

This also means the user must make sure that the custom region is a subregion of its ISO3 parent region.

Dependency of kraemer-lab/DART-Pipeline#335

@tuyenhn tuyenhn self-assigned this May 14, 2026
@tuyenhn
tuyenhn requested a review from abhidg May 14, 2026 04:08

@tuyenhn tuyenhn left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

self-reviewed and this all looks ok

it is also backwards-compatible and should not result in any breaking changes

@tuyenhn
tuyenhn merged commit f8057fd into main Jun 4, 2026
2 checks passed
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.

1 participant