PolicyEngine / PolicyEngine/policyengine-core
Support scale parameter `.calc("threshold_variable")`
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 22
- Forks
- 30
- Avg merge
- 14h 33m
- Merged PRs (30d)
- 7
Description
To condense this:
taxable_income = tax_unit("taxable_income", period)
tax = parameters(period).tax.mtr_schedule.calc(taxable_income)
to this:
tax = parameters(period).tax.mtr_schedule.calc("taxable_income")
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by locating the Python implementation and tests for the scale parameter's calc method, then trace how it currently handles a numeric variable value. Done means calc("taxable_income") supports the condensed form and matches the existing explicit taxable_income usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100