Skip to content

fix(famafrench): Australia's country portfolio file is Austrlia.Dat - #7758

Merged
dlee-bq merged 4 commits into
openbq-org:developfrom
artcashin:fix/famafrench-australia-file
Oct 17, 2026
Merged

dlee-bq merged 4 commits into
openbq-org:developfrom
artcashin:fix/famafrench-australia-file

Conversation

@artcashin

Copy link
Copy Markdown
Contributor

Problem

The Fama-French international country portfolios fail for Australia with ValueError: Index Australia.Dat not found in available indexes. Members of F-F_International_Countries.zip (and of F-F_International_Countries_Wout_Div.zip) use eight-character names, like Nethrlnd.Dat and Swtzrlnd.Dat, and Australia's is Austrlia.Dat. The other twenty countries were already mapped correctly.

Change

COUNTRY_PORTFOLIO_FILES["Australia"] = "Austrlia.Dat".

Tests

Two new tests in tests/test_helpers.py:

  • test_every_country_maps_to_a_zip_member checks every mapped name against the archive's 21 members, as listed on 2026-10-09.
  • test_get_international_portfolio_data_australia reads Australia from a stub archive.

Both fail without the change and pass with it. The provider suite passes: 130 tests (Python 3.12).

Results from a deployment

We run this as an overlay on the 2.0.0 wheel in OpenBQ's Docker image. Before the change, a sweep of every widget gave the Austrlia.Dat mismatch for Australia. With it, the Australia country portfolio returns 612 rows.

Not included

Nothing else.

🤖 Generated with Claude Code

The members of F-F_International_Countries.zip (and its _Wout_Div twin)
use eight-character names, and Australia's is Austrlia.Dat, not
Australia.Dat. Every Australia request failed with "not found in available
indexes". The other twenty countries already map to their member names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@artcashin
artcashin force-pushed the fix/famafrench-australia-file branch from f7df957 to e8e0f3a Compare October 9, 2026 23:25
@dlee-bq
dlee-bq enabled auto-merge October 17, 2026 23:07

@deeleeramone deeleeramone left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the fix!

@dlee-bq
dlee-bq added this pull request to the merge queue Oct 17, 2026
Merged via the queue into openbq-org:develop with commit cbf37e1 Oct 17, 2026
23 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.

3 participants