Skip to content

Commit 3daecaf

Browse files
Merge pull request #171 from PolicyEngine/nikhilwoodruff/issue170
New UKMultiYearDataset doesn't have post-2023 data
2 parents 688da7b + 620a080 commit 3daecaf

2 files changed

Lines changed: 10 additions & 0 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+
- Bug in new multi-year dataset.

policyengine_uk_data/utils/create_multi_year_dataset.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def convert_legacy_to_multi_year_dataset(
2525
dataset = dataset.copy()
2626
dataset.time_period = str(year)
2727

28+
datasets.append(dataset.copy())
29+
2830
multi_year_dataset = UKMultiYearDataset(
2931
datasets=datasets,
3032
)
@@ -51,3 +53,7 @@ def convert_legacy_to_multi_year_dataset(
5153
end_year=2029,
5254
)
5355
print(f"Converted {file_path} to {new_file_path}")
56+
# Test here
57+
sim = Microsimulation(
58+
dataset=UKMultiYearDataset(file_path=str(new_file_path))
59+
)

0 commit comments

Comments
 (0)