Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
78ee014
Re-add dividends calibration
nikhilwoodruff Oct 1, 2025
39f8706
Add changelog entry
nikhilwoodruff Oct 1, 2025
7ec489f
Update tests
nikhilwoodruff Oct 1, 2025
66f80db
Fix tests
nikhilwoodruff Oct 1, 2025
e336692
Remove birth_year from FRS dataset generation
MaxGhenis Oct 2, 2025
5d504b3
Remove bad test for now
nikhilwoodruff Oct 2, 2025
9614631
Format
nikhilwoodruff Oct 2, 2025
33235a4
Merge pull request #197 from PolicyEngine/dividend-calibration
nikhilwoodruff Oct 2, 2025
4112612
Update package version
nikhilwoodruff Oct 2, 2025
d921311
Merge remote-tracking branch 'origin/main' into remove-birth-year-fro…
MaxGhenis Oct 2, 2025
93ba900
Update uv.lock after merging main
MaxGhenis Oct 2, 2025
483c8de
Merge pull request #198 from PolicyEngine/remove-birth-year-from-dataset
MaxGhenis Oct 2, 2025
30d406a
Update package version
MaxGhenis Oct 2, 2025
cadfec8
relax childcare tests
vahid-ahmadi Oct 2, 2025
99bee6f
changelog
vahid-ahmadi Oct 2, 2025
11885aa
Merge pull request #200 from PolicyEngine/relax-childcare-tests
MaxGhenis Oct 2, 2025
89cc7ae
Update package version
MaxGhenis Oct 2, 2025
40bfd0e
Relax childcare tests by 100 percent
vahid-ahmadi Oct 2, 2025
7c42ad0
Merge branch 'main' into relax-childcare-tests2
vahid-ahmadi Oct 2, 2025
e87ffab
Merge pull request #201 from PolicyEngine/relax-childcare-tests2
vahid-ahmadi Oct 2, 2025
a655ff7
Update package version
vahid-ahmadi Oct 2, 2025
a7649a9
Add regional labels
nikhilwoodruff Oct 7, 2025
4372e22
Merge pull request #204 from PolicyEngine/regional-labels
nikhilwoodruff Oct 7, 2025
24c1bd6
Update package version
nikhilwoodruff Oct 7, 2025
63b53ef
Update Python version and Makefile for consistency
MaxGhenis Oct 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,36 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.19.4] - 2025-10-07 16:32:10

### Added

- Regional and country labels for UK constituencies.

## [1.19.3] - 2025-10-02 16:46:59

### Changed

- Relaxed childcare test tolerance to allow ratios within 100% of target (0 to 2.0)

## [1.19.2] - 2025-10-02 16:12:23

### Changed

- Relaxed childcare test tolerance to allow ratios up to 1.6

## [1.19.1] - 2025-10-02 15:18:04

### Changed

- Remove birth_year from FRS dataset generation to allow dynamic calculation

## [1.19.0] - 2025-10-02 14:29:16

### Fixed

- Re-add dividends to calibration target set.

## [1.18.0] - 2025-09-30 13:58:18

### Changed
Expand Down Expand Up @@ -346,6 +376,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0



[1.19.4]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.19.3...1.19.4
[1.19.3]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.19.2...1.19.3
[1.19.2]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.19.1...1.19.2
[1.19.1]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.19.0...1.19.1
[1.19.0]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.18.0...1.19.0
[1.18.0]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.17.11...1.18.0
[1.17.11]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.17.10...1.17.11
[1.17.10]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.17.9...1.17.10
Expand Down
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
all: data test

format:
black . -l 79
uv run black . -l 79

test:
pytest .
uv run pytest .

install:
uv pip install -e ".[dev]" --config-settings editable_mode=compat

download:
python policyengine_uk_data/storage/download_private_prerequisites.py
uv run python policyengine_uk_data/storage/download_private_prerequisites.py

upload:
python policyengine_uk_data/storage/upload_completed_datasets.py
uv run python policyengine_uk_data/storage/upload_completed_datasets.py

documentation:
pip install --pre "jupyter-book>=2"
uv pip install --pre "jupyter-book>=2"
jb clean docs && jb build docs
python docs/add_plotly_to_book.py docs
uv run python docs/add_plotly_to_book.py docs

data:
python policyengine_uk_data/datasets/create_datasets.py
uv run python policyengine_uk_data/datasets/create_datasets.py

build:
python -m build
uv run python -m build

publish:
twine upload dist/*
Expand Down
26 changes: 26 additions & 0 deletions changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,29 @@
- Jupyter Book deployment to GitHub Pages by adding docs workflow and fixing branch
reference
date: 2025-09-30 13:58:18
- bump: minor
changes:
fixed:
- Re-add dividends to calibration target set.
date: 2025-10-02 14:29:16
- bump: patch
changes:
changed:
- Remove birth_year from FRS dataset generation to allow dynamic calculation
date: 2025-10-02 15:18:04
- bump: patch
changes:
changed:
- Relaxed childcare test tolerance to allow ratios up to 1.6
date: 2025-10-02 16:12:23
- bump: patch
changes:
changed:
- Relaxed childcare test tolerance to allow ratios within 100% of target (0 to
2.0)
date: 2025-10-02 16:46:59
- bump: patch
changes:
added:
- Regional and country labels for UK constituencies.
date: 2025-10-07 16:32:10
5 changes: 5 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- bump: patch
changes:
changed:
- Update Black target version from py311 to py313 to match project requirements
- Update Makefile commands to consistently use uv run for Python execution
3 changes: 2 additions & 1 deletion policyengine_uk_data/datasets/frs.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ def create_frs(
# Add basic personal variables
age = person.age80 + person.age
pe_person["age"] = age
pe_person["birth_year"] = np.ones_like(person.age) * (year - age)
# birth_year should be calculated from age and period in the model,
# not stored as static data (see PolicyEngine/policyengine-uk#1352)
# Age fields are AGE80 (top-coded) and AGE in the adult and child tables, respectively.
pe_person["gender"] = np.where(person.sex == 1, "MALE", "FEMALE")
pe_person["hours_worked"] = np.maximum(person.tothours, 0) * 52
Expand Down
Loading