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
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
fixed:
- Updated the UK data to the latest survey year.
10 changes: 5 additions & 5 deletions policyengine/utils/data/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

from typing import Tuple, Optional

EFRS_2022 = "gs://policyengine-uk-data-private/enhanced_frs_2022_23.h5"
FRS_2022 = "gs://policyengine-uk-data-private/frs_2022_23.h5"
EFRS_2023 = "gs://policyengine-uk-data-private/enhanced_frs_2023_24.h5"
FRS_2023 = "gs://policyengine-uk-data-private/frs_2023_24.h5"
CPS_2023 = "gs://policyengine-us-data/cps_2023.h5"
CPS_2023_POOLED = "gs://policyengine-us-data/pooled_3_year_cps_2023.h5"
ECPS_2024 = "gs://policyengine-us-data/enhanced_cps_2024.h5"

POLICYENGINE_DATASETS = [
EFRS_2022,
FRS_2022,
EFRS_2023,
FRS_2023,
CPS_2023,
CPS_2023_POOLED,
ECPS_2024,
Expand All @@ -28,7 +28,7 @@ def get_default_dataset(
country: str, region: str, version: Optional[str] = None
) -> str:
if country == "uk":
return EFRS_2022
return EFRS_2023
elif country == "us":
if region is not None and region != "us":
return CPS_2023_POOLED
Expand Down
Loading