Skip to content

Commit

Permalink
Fix Extended FRS bug (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff authored Sep 18, 2024
1 parent 2273e7a commit 4a79a8a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.3] - 2024-09-18 12:57:28

### Fixed

- Bug causing the Extended FRS to not generate.

## [1.2.2] - 2024-09-18 11:38:21

## [1.2.1] - 2024-09-18 10:05:45
Expand Down Expand Up @@ -33,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0



[1.2.3]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.2.2...1.2.3
[1.2.2]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.2.1...1.2.2
[1.2.1]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.2.0...1.2.1
[1.2.0]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.1.0...1.2.0
Expand Down
5 changes: 5 additions & 0 deletions changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@
removed:
- Survey Enhance is no longer used as a top-level import.
date: 2024-09-18 11:38:21
- bump: patch
changes:
fixed:
- Bug causing the Extended FRS to not generate.
date: 2024-09-18 12:57:28
2 changes: 2 additions & 0 deletions policyengine_uk_data/datasets/frs/extended_frs.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def generate(self):
["age", "gender", "region"]
)
create_income_model()
from survey_enhance import Imputation

income = Imputation.load(STORAGE_FOLDER / "income.pkl")
full_imputations = income.predict(income_inputs)
for variable in full_imputations.columns:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "policyengine_uk_data"
version = "1.2.2"
version = "1.2.3"
description = "A package to create representative microdata for the UK."
readme = "README.md"
authors = [
Expand Down

0 comments on commit 4a79a8a

Please sign in to comment.