Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Update the UK lsr functionality

Aperta
#337 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@vahid-ahmadi ci sta già lavorando.

Dal 7/10/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
Python
Stelle
1
Fork
1
Merge medio
15h 3m
PR unite (30g)
14

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PolicyEngine/policyengine-sim-api

Tutte le issue di PolicyEngine/policyengine-sim-api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.