Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions changelog.d/uk-area-lists-from-py.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The UK metadata's constituency and local-authority region options, and the economy region check that accepts them, read the area lists packaged with .py, without importing .py, and the Public API's own copies of those lists are removed; the region options and the regions the check accepts are unchanged.
4 changes: 3 additions & 1 deletion policyengine_api/country.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ def build_microsimulation_options(self) -> dict:
for name, label in UK_COUNTRY_REGIONS
),
]
# The economy region check reads the same cached lists.
# Constituencies, then local authorities, each sorted by name, from
# the area lists .py builds its UK region registry from. The economy
# region check reads the same cached lists.
region.extend(
{
"name": f"{area_type}/{area.name}",
Expand Down
Loading
Loading