-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Massachusetts Emergency Aid to the Elderly, Disabled and Children (EAEDC) #4870
base: master
Are you sure you want to change the base?
Conversation
policyengine_us/parameters/gov/states/ma/dta/tcap/eaedc/age_threshold.yaml
Outdated
Show resolved
Hide resolved
policyengine_us/parameters/gov/states/ma/dta/tcap/eaedc/age_threshold.yaml
Outdated
Show resolved
Hide resolved
policyengine_us/variables/gov/states/ma/dta/tcap/eaedc/income/ma_eaedc_net_income.py
Outdated
Show resolved
Hide resolved
policyengine_us/variables/gov/states/ma/dta/tcap/eaedc/income/ma_eaedc_net_income.py
Outdated
Show resolved
Hide resolved
policyengine_us/variables/gov/states/ma/dta/tcap/eaedc/income/ma_eaedc_income_limit.py
Outdated
Show resolved
Hide resolved
policyengine_us/variables/gov/states/ma/dta/tcap/eaedc/income/ma_eaedc_income_limit.py
Outdated
Show resolved
Hide resolved
...cyengine_us/variables/gov/states/ma/dta/tcap/eaedc/income/ma_eaedc_disabled_earned_income.py
Outdated
Show resolved
Hide resolved
policyengine_us/variables/gov/states/ma/dta/tcap/eaedc/income/ma_eaedc_earned_income.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Pinyan <pxu12@users.noreply.github.com>
Merge branch 'master' of https://github.com/PolicyEngine/policyengine-us into hua7450/issue1712
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4870 +/- ##
==========================================
+ Coverage 99.00% 99.02% +0.01%
==========================================
Files 2536 2572 +36
Lines 36845 37364 +519
Branches 152 158 +6
==========================================
+ Hits 36479 36998 +519
Misses 337 337
Partials 29 29 ☔ View full report in Codecov by Sentry. |
Merge branch 'master' of https://github.com/PolicyEngine/policyengine-us into hua7450/issue1712
class ma_eaedc_disabled_earned_income(Variable): | ||
value_type = float | ||
entity = Person | ||
label = "Massachusetts EAEDC disabled earned income" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
label = "Massachusetts EAEDC disabled earned income" | |
label = "Massachusetts EAEDC earned income of a disabled person" |
from policyengine_us.model_api import * | ||
|
||
|
||
class ma_eaedc_total_earned_income(Variable): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class ma_eaedc_total_earned_income(Variable): | |
class ma_eaedc_no_disabled_earned_income(Variable): |
from policyengine_us.model_api import * | ||
|
||
|
||
class ma_eaedc_earned_income(Variable): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class ma_eaedc_earned_income(Variable): | |
class ma_eaedc_total_earned_income(Variable): |
definition_period = YEAR | ||
defined_for = StateCode.MA | ||
|
||
adds = ["ma_eaedc_earned_income"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make a formula and lets do the same as in disabled income just with ~disabled & ~dependent
person = spm_unit.members | ||
is_dependent = person("is_tax_unit_dependent", period) | ||
age = person("age", period) | ||
meets_age_limit = age < 18 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets parametrize this
value_type = bool | ||
entity = SPMUnit | ||
label = "Eligible for Massachusetts EAEDC dependent care deduction" | ||
unit = USD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unit = USD |
value_type = bool | ||
entity = SPMUnit | ||
label = "Disabled person's income eligible for Massachusetts EAEDC" | ||
unit = USD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unit = USD |
value_type = bool | ||
entity = SPMUnit | ||
label = "Assets eligible for Massachusetts EAEDC " | ||
unit = USD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unit = USD |
value_type = bool | ||
entity = SPMUnit | ||
label = "Age eligible for Massachusetts EAEDC " | ||
unit = USD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unit = USD |
defined_for = StateCode.MA | ||
|
||
def formula(person, period, parameters): | ||
disabled = person("is_disabled", period) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a is_dependent condition
Fixes #1712