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
8 changes: 0 additions & 8 deletions .github/workflows/pr_code_changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,5 @@ jobs:
run: make test
env:
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
- name: Update tests
run: make update-tests
env:
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
- name: Save dataset
run: make update-tests
env:
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
- name: Test documentation builds
run: make documentation
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
fixed:
- Bug in loading entity tables.
4 changes: 2 additions & 2 deletions policyengine_uk/data/dataset_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(
self.person = f["person"]
self.benunit = f["benunit"]
self.household = f["household"]
self.time_period = f["time_period"].iloc[0]
self.time_period = str(f["time_period"].iloc[0])
else:
if person is None or benunit is None or household is None:
raise ValueError(
Expand All @@ -57,9 +57,9 @@ def __init__(
self.person = person
self.benunit = benunit
self.household = household
self.time_period = str(fiscal_year)

self.data_format = "arrays"
self.time_period = fiscal_year
self.tables = (self.person, self.benunit, self.household)

def save(self, file_path: str):
Expand Down
Loading