PolicyEngine / PolicyEngine/policyengine-core

Remove duplicate reform application

Open
#377 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
22
Forks
30
Avg merge
14h 33m
Merged PRs (30d)
7

Description

We currently apply reforms twice- once at the tax-benefit system initialisation, once afterwards. This doesn't affect the vast majority of simulations, but where reforms e.g. add a new parameter without checking the old one, it breaks. I think we should remove the second application.

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.

Research direction

Trace the tax-benefit system initialization and the later reform application path to locate where reforms are applied twice. Run the existing simulation and reform tests, then confirm that reforms are applied once and that cases adding parameters without checking prior definitions no longer fail.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.