Skip to content

Commit 9faeeb2

Browse files
Add dataset constants
1 parent a0de606 commit 9faeeb2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

policyengine/constants.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@
44
from policyengine.utils.data_download import download
55
from typing import Tuple
66

7+
EFRS_2022 = "gcs://policyengine-uk-data-private/enhanced_frs_2022_23.h5"
8+
FRS_2022 = "gcs://policyengine-uk-data-private/frs_2022_23.h5"
9+
CPS_2023_POOLED = "gcs://policyengine-us-data/pooled_3_year_cps_2023.h5"
10+
CPS_2023 = "gcs://policyengine-us-data/cps_2023.h5"
11+
ECPS_2024 = "gcs://policyengine-us-data/ecps_2024.h5"
12+
713

814
def get_default_dataset(
915
country: str, region: str, version: str | None = None
1016
) -> str:
1117
if country == "uk":
12-
return "gcs://policyengine-uk-data-private/enhanced_frs_2022_23.h5"
18+
return EFRS_2022
1319
elif country == "us":
1420
if region is not None and region != "us":
15-
return "gcs://policyengine-us-data/pooled_3_year_cps_2023.h5"
21+
return CPS_2023_POOLED
1622
else:
17-
return "gcs://policyengine-us-data/cps_2023.h5"
23+
return CPS_2023
1824

1925
raise ValueError(
2026
f"Unable to select a default dataset for country {country} and region {region}."

0 commit comments

Comments
 (0)