Skip to content

Commit 8f7c98b

Browse files
Merge pull request #131 from PolicyEngine/data-docs
Improve documentation
2 parents 3431977 + 76c001f commit 8f7c98b

4 files changed

Lines changed: 7105 additions & 212 deletions

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+
- Documentation used 2022 datasets rather than 2025.

docs/methodology.ipynb

Lines changed: 7078 additions & 210 deletions
Large diffs are not rendered by default.

docs/validation/national.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
{
1111
"cell_type": "code",
12-
"execution_count": 1,
12+
"execution_count": null,
1313
"metadata": {},
1414
"outputs": [
1515
{
@@ -177,7 +177,7 @@
177177
"def get_validation():\n",
178178
" df = pd.DataFrame()\n",
179179
" for dataset in [FRS_2022_23, EnhancedFRS_2022_23]:\n",
180-
" for year in range(2022, 2029):\n",
180+
" for year in range(2025, 2029):\n",
181181
" loss_results = get_loss_results(dataset, year)\n",
182182
" loss_results[\"time_period\"] = year\n",
183183
" loss_results[\"dataset\"] = dataset.label\n",
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from policyengine_uk_data.utils.huggingface import download, upload
2+
from pathlib import Path
3+
4+
5+
FOLDER = Path(__file__).parent
6+
7+
FILES = [
8+
"enhanced_frs_2022_23.h5",
9+
"frs_2022_23.h5",
10+
"parliamentary_constituency_weights.h5",
11+
"local_authority_weights.h5",
12+
]
13+
14+
FILES = [FOLDER / file for file in FILES]
15+
16+
for file in FILES:
17+
download(
18+
repo="policyengine/policyengine-uk-data",
19+
repo_filename=file.name,
20+
local_folder=file.parent,
21+
)

0 commit comments

Comments
 (0)