Support multiple BACI releases in the CEPII source - #544
Draft
Wegatriespython wants to merge 1 commit into
Draft
Conversation
Wegatriespython
marked this pull request as draft
August 20, 2026 14:28
The source was fixed to the 202501 release, named in the pooch registry and in the class docstring, which carried "test with additional releases" as a todo. Add ARCHIVE, mapping a release to its archive, and Options.release, defaulting to the earliest supported so existing results do not move. Selecting data files now matches the release as well as the prefix: releases extract to a shared directory, so without it a second extracted release would be read alongside the first. fetch() gains an optional filename, required only where a registry holds more than one entry, which replaces the NotImplementedError it raised there. This is additive: existing callers pass no filename and every other registry has one entry, so only the path that previously raised behaves differently. Add load_data(), a plain-DataFrame entry point for consumers that use pandas and have no Computer, alongside the existing genno path. It resolves reporter codes to alpha-3 and raises on an unmapped code rather than dropping those observations. get_mapping() now builds on the same private mapping, in which the hand-listed codes take precedence over the ISO 3166-1 values.
Wegatriespython
force-pushed
the
project/osce-baci
branch
from
August 20, 2026 14:28
70bd77c to
8e85884
Compare
Wegatriespython
had a problem deploying
to
publish
August 20, 2026 14:28 — with
GitHub Actions
Error
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## project/osce #544 +/- ##
============================================
Coverage 74.5% 74.6%
============================================
Files 327 327
Lines 26132 26188 +56
============================================
+ Hits 19488 19542 +54
- Misses 6644 6646 +2
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a draft PR which builds on #543, to extend support for newer BACI releases
Further extensions might be added here related to BACI data workflow as the project evolves.
PR checklist
- [ ] Update doc/whatsnew.