Skip to content

Commit 7d2e173

Browse files
Merge pull request #189 from PolicyEngine/custom-frs-fix
Fix bug in post-2023 FRS runs
2 parents 216266b + 9a5012c commit 7d2e173

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

changelog_entry.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- bump: patch
2+
changes:
3+
fixed:
4+
- A bug hard-coded to 2023, which meant that custom FRS datasets defined after 2024 fail on BRMA imputation.

policyengine_uk_data/datasets/frs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ def determine_education_level(fted_val, typeed2_val, age_val):
774774
{
775775
"brma": brma,
776776
"household_id": sim.populations["benunit"].household(
777-
"household_id", 2023
777+
"household_id", sim.dataset.time_period
778778
),
779779
}
780780
)

0 commit comments

Comments
 (0)