Skip to content

Point the UK quickstart and examples at the certified dataset - #709

Open
vahid-ahmadi wants to merge 1 commit into
mainfrom
docs/uk-data-access-quickstart
Open

vahid-ahmadi wants to merge 1 commit into
mainfrom
docs/uk-data-access-quickstart

Conversation

@vahid-ahmadi

Copy link
Copy Markdown
Contributor

Summary

Fixes #473.

The README's UK population quickstart, examples/policy_change_uk.py and examples/income_bands_uk.py still loaded enhanced_frs_2023_24, which the certified bundle no longer uses as the UK default. A new user following them gets a missing-file error from the examples, or a superseded dataset from the quickstart.

  • README quickstart: microcosm_uk_2024_25, the bundle's certified default.
  • Both UK examples load the dataset with ensure_datasets(datasets=["microcosm_uk_2024_25"], years=[year]) instead of expecting ./data/enhanced_frs_2023_24_year_{year}.h5 to exist already. Their Run: lines now name the real file names.
  • README and docs/microsim.md say how to request access to the private UK data (the route in the policyengine-uk getting-started guide: email contact@policyengine.org with the Hugging Face username and evidence of UK Data Service access).
  • New docs/microsim.md section, "Working without UK data access": household calculations and US population data need no access; there is no public UK population file; managed_microsimulation(dataset=path, allow_unmanaged=True) runs on a local file and records it with no certified hash.
  • The paper repro keeps the Enhanced FRS 2023-24 it was pinned to; the README now says so.

Checks

Both updated examples ran to completion on 6.10.1 against the bundle's Microcosm UK 2024-25 (income_bands_uk.py: 29.2m households, 22.6% average effective tax rate). The allow_unmanaged=True statement was checked by running it on a local copy of the file and reading sim.policyengine_bundle. ruff check and ruff format --check pass on the changed examples.

Found while reproducing a published think-tank analysis on Microcosm UK 2024-25 as a new user with only the public docs.

🤖 Generated with Claude Code

The README population quickstart and examples/policy_change_uk.py and
income_bands_uk.py still loaded enhanced_frs_2023_24, which the certified
bundle no longer ships. Use microcosm_uk_2024_25, and document how to
request access to the private UK data and what works without it.

Fixes #473

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

README population quickstart still teaches enhanced_frs_2023_24

1 participant