Skip to content

Conversation

@nwoodruff-co
Copy link
Contributor

Summary

  • Fixes dataset uprating bug where region values weren't converted to strings for rent indexing
  • Changes salary sacrifice default behavior to be static (0) instead of fully optimized (1.0)

Details

Dataset Uprating Bug (policyengine_uk/data/economic_assumptions.py:165)

Problem: Regional rent uprating was failing because region values weren't being converted to strings before indexing into the private rental prices parameter.

Impact: Dataset uprating for rent values was breaking for years 2022-2024.

Fix: Convert region.values to region.values.astype(str) before indexing.

Salary Sacrifice Default Behavior

Problem: The employee_salary_sacrifice_reduction_rate parameter had a default value of 1.0 (full optimization), but the default behavior should be static (no behavioral response).

Impact: Simulations were incorrectly assuming employees would fully optimize their salary sacrifice in response to caps.

Fix: Change default value from 1.0 to 0 to make behavior static by default.

Test plan

  • Verify dataset uprating works correctly for rent values across all years
  • Verify salary sacrifice simulations use static default behavior
  • Run existing tests to ensure no regressions

🤖 Generated with Claude Code

nwoodruff-co and others added 2 commits January 8, 2026 16:55
- 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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants