PolicyEngine / PolicyEngine/policyengine-uk

Simplify logic for `is_benunit_eldest_child` variable

Open
#199 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

code-health
Dominant language
Python
Stars
50
Forks
33
Avg merge
20h 58m
Merged PRs (30d)
14

Description

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

Start in openfisca_uk/variables/demographic/person.py at lines 79-121, then compare openfisca_uk/variables/demographic/benunit.py at lines 106-115. Trace how is_benunit_eldest_child uses child_index and the other intermediate logic before deciding what can be removed. Done means the logic is simpler while preserving existing behavior and tests pass.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.