Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Update the UK lsr functionality

Open
#337 0 comments 0 reactions 1 assignee View on GitHub

@vahid-ahmadi is already working on this.

Since Oct 7, 2025.

Assessment

This issue has not been assessed yet.

Description

bug

Problem:
The UK behavioral response toggle in the PolicyEngine app was not working because the API wasn't calling apply_dynamics() when behavioral response parameters were present in reforms. This meant that labor supply adjustments were being ignored, and users weren't seeing the intended behavioral effects of policy changes.

Solution:
Added automatic detection of behavioral response parameters (gov.simulation.labor_supply_responses.income_elasticity and substitution_elasticity) in the API. When these parameters are present in a UK household calculation request, the API now automatically calls simulation.apply_dynamics(year) to enable behavioral adjustments before calculating results.

Dominant language
Python
Stars
1
Forks
1
Avg merge
15h 10m
Merged PRs (30d)
12

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PolicyEngine/policyengine-sim-api

All issues in PolicyEngine/policyengine-sim-api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.