From 52f42818465d2b34375d9780e222647c4e33d9db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Juaristi?= <127882282+juaristi22@users.noreply.github.com> Date: Tue, 22 Sep 2026 11:05:13 +0100 Subject: [PATCH 1/2] Add the six April 2023 unitary authorities to LocalAuthority Cumberland, North Northamptonshire, North Yorkshire, Somerset, West Northamptonshire and Westmorland and Furness are the April 2023 local authority districts absent from the enum, so a dataset on that roster could not supply local_authority for their households (about 1.4 million people fell to the MAIDSTONE default). Members are inserted in the enum's display-name order; every predecessor district stays a valid member. Requested on PolicyEngine/policyengine-uk#1855; consumed by PolicyEngine/microcosm#953. Co-Authored-By: Claude Fable 5.1 --- changelog.d/local-authority-2023-unitaries.md | 1 + .../variables/household/demographic/locations.py | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 changelog.d/local-authority-2023-unitaries.md diff --git a/changelog.d/local-authority-2023-unitaries.md b/changelog.d/local-authority-2023-unitaries.md new file mode 100644 index 0000000000..5fdc468908 --- /dev/null +++ b/changelog.d/local-authority-2023-unitaries.md @@ -0,0 +1 @@ +- Add the six April 2023 unitary authorities (Cumberland, North Northamptonshire, North Yorkshire, Somerset, West Northamptonshire, Westmorland and Furness) to the `LocalAuthority` enum, so a dataset on the April 2023 local authority roster can supply `local_authority` for every household. diff --git a/policyengine_uk/variables/household/demographic/locations.py b/policyengine_uk/variables/household/demographic/locations.py index 0c67fb0046..2b96b369e9 100644 --- a/policyengine_uk/variables/household/demographic/locations.py +++ b/policyengine_uk/variables/household/demographic/locations.py @@ -295,6 +295,7 @@ class LocalAuthority(Enum): CRAVEN = "Craven" CRAWLEY = "Crawley" CROYDON = "Croydon" + CUMBERLAND = "Cumberland" DACORUM = "Dacorum" DARLINGTON = "Darlington" DARTFORD = "Dartford" @@ -438,10 +439,12 @@ class LocalAuthority(Enum): NORTH_LANARKSHIRE = "North Lanarkshire" NORTH_LINCOLNSHIRE = "North Lincolnshire" NORTH_NORFOLK = "North Norfolk" + NORTH_NORTHAMPTONSHIRE = "North Northamptonshire" NORTH_SOMERSET = "North Somerset" NORTH_TYNESIDE = "North Tyneside" NORTH_WARWICKSHIRE = "North Warwickshire" NORTH_WEST_LEICESTERSHIRE = "North West Leicestershire" + NORTH_YORKSHIRE = "North Yorkshire" NORTHAMPTON = "Northampton" NORTHUMBERLAND = "Northumberland" NORWICH = "Norwich" @@ -493,6 +496,7 @@ class LocalAuthority(Enum): SHROPSHIRE = "Shropshire" SLOUGH = "Slough" SOLIHULL = "Solihull" + SOMERSET = "Somerset" SOMERSET_WEST_AND_TAUNTON = "Somerset West and Taunton" SOUTH_AYRSHIRE = "South Ayrshire" SOUTH_CAMBRIDGESHIRE = "South Cambridgeshire" @@ -569,9 +573,11 @@ class LocalAuthority(Enum): WEST_LANCASHIRE = "West Lancashire" WEST_LINDSEY = "West Lindsey" WEST_LOTHIAN = "West Lothian" + WEST_NORTHAMPTONSHIRE = "West Northamptonshire" WEST_OXFORDSHIRE = "West Oxfordshire" WEST_SUFFOLK = "West Suffolk" WESTMINSTER = "Westminster" + WESTMORLAND_AND_FURNESS = "Westmorland and Furness" WIGAN = "Wigan" WILTSHIRE = "Wiltshire" WINCHESTER = "Winchester" From c0f089f4d64d494da754055cdcb24e853a7189f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Juaristi?= <127882282+juaristi22@users.noreply.github.com> Date: Tue, 22 Sep 2026 16:01:13 +0100 Subject: [PATCH 2/2] Give the changelog fragment its Towncrier type Review C1: a typeless fragment yields no release note and no minor bump; the repository requires ..md. Co-Authored-By: Claude Fable 5.1 --- ...-2023-unitaries.md => local-authority-2023-unitaries.added.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename changelog.d/{local-authority-2023-unitaries.md => local-authority-2023-unitaries.added.md} (100%) diff --git a/changelog.d/local-authority-2023-unitaries.md b/changelog.d/local-authority-2023-unitaries.added.md similarity index 100% rename from changelog.d/local-authority-2023-unitaries.md rename to changelog.d/local-authority-2023-unitaries.added.md