Skip to content

Commit 32b56c9

Browse files
Fix dataset uprating and salary sacrifice default behavior (#1464)
- Fix dataset uprating bug where region values weren't converted to strings for rent indexing - Change salary sacrifice default behavior to be static (0) instead of fully optimized (1.0) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3c545ab commit 32b56c9

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

changelog_entry.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- bump: patch
2+
changes:
3+
fixed:
4+
- Dataset uprating bug where region values weren't converted to strings for rent indexing
5+
- Salary sacrifice default behavior to be static (0) instead of fully optimized (1.0)
6+

policyengine_uk/data/economic_assumptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def uprate_rent(
162162
elif year < 2025:
163163
# We have regional growth rates for private rent.
164164
regional_growth_rate = growth.ons.private_rental_prices(year)[
165-
region.values
165+
region.values.astype(str)
166166
]
167167
current_year.household["rent"] = np.where(
168168
is_private_rented,

policyengine_uk/parameters/gov/contrib/behavioral_responses/employee_salary_sacrifice_reduction_rate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Most employees would optimize their salary sacrifice to avoid NI charges by reducing it to the cap level.
66
description: The percentage by which employees reduce their salary sacrifice pension contributions in response to the salary sacrifice pension cap.
77
values:
8-
2010-01-01: 1.0 # Default: full optimization (employees reduce to cap level)
8+
2010-01-01: 0 # Default: full optimization (employees reduce to cap level)
99
metadata:
1010
unit: /1
1111
label: Employee salary sacrifice reduction rate in response to cap

0 commit comments

Comments
 (0)