PolicyEngine / PolicyEngine/policyengine-core

Allow parameters for `defined_for`

Open
#341 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

For example, only calculating a variable if a parameter indicating its activity is true. Not sure if this would work given the period part.

Example: https://github.com/PolicyEngine/policyengine-us/pull/5570#discussion_r1950036819

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

Read the implementation of defined_for and how its period handling works. Review the linked PolicyEngine US pull-request discussion for the intended parameter behavior. Done means the issue's activity parameter can control whether a variable is calculated without breaking period handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.