Skip to content

Add OBR forecast importer#1560

Merged
MaxGhenis merged 4 commits intomainfrom
codex/fix-1378
Apr 7, 2026
Merged

Add OBR forecast importer#1560
MaxGhenis merged 4 commits intomainfrom
codex/fix-1378

Conversation

@MaxGhenis
Copy link
Copy Markdown
Collaborator

Summary

Adds a reusable importer for OBR detailed forecast tables and a thin CLI wrapper so future yoy_growth.yaml updates can be driven from the published economy workbook instead of manual copy/paste.

What changed

  • adds policyengine_uk.utils.import_obr_forecasts to extract annual forecast series from OBR economy ZIP/XLSX files
  • adds scripts/import_obr_forecasts.py for direct repo usage
  • updates only the forecast window for the target OBR series and refreshes the first EFO reference in each section
  • preserves existing YAML values when the workbook leaves a forecast year blank
  • adds unit coverage for workbook parsing, release inference, YAML updates, and sparse-year handling

Closes #1378.

@MaxGhenis MaxGhenis merged commit e1749e6 into main Apr 7, 2026
2 checks passed
@MaxGhenis MaxGhenis deleted the codex/fix-1378 branch April 7, 2026 14:21
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.

Create automated OBR forecast data importer

1 participant