-
Couldn't load subscription status.
- Fork 201
Usda disabled #353
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
Merged
Merged
Usda disabled #353
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
3723efb
add usda disabled params to usda folder and add is_usda_elderly varia…
nmrodelo 012b6fd
updated spm_unit level has_elderly_or_disabled to be solely had_disab…
nmrodelo 1cac429
update documentation for has_usda_disabled
nmrodelo 63ee869
remove changes to has_elderly_disabled, leave for seperate pr
nmrodelo 4c1c7a8
move elderly defiinition from snap.py to usda.py
nmrodelo d3d5b4b
update variable name in usda.py
nmrodelo 2f5afe5
Update openfisca_us/parameters/usda/usda_disabled.yaml
nmrodelo d0cccf5
Update openfisca_us/parameters/usda/usda_disabled.yaml
nmrodelo 003cc4a
formatting
nmrodelo 077f733
Merge branch 'usda_disabled' of https://github.com/nmrodelo/openfisca…
nmrodelo 2574523
formatting updates
nmrodelo 41011d9
re add is_disabled_or_elderly_for_snap to snap.py, rename usda_disabl…
nmrodelo 2604397
added prelim formula
nmrodelo e9d1fef
add label
nmrodelo 8ea4c89
rename disabled.yaml to disabled_programs.yaml
nmrodelo 2c49e21
Update openfisca_us/variables/usda/usda.py
nmrodelo 384a5d7
Merge branch 'usda_disabled' of https://github.com/nmrodelo/openfisca…
nmrodelo 24375d3
removed units
nmrodelo 586d84a
add formula for is_usda_disabled in usda.py
nmrodelo feac965
add label, formatting
nmrodelo 6e6325e
use placeholder formula for disabled status pending clarification
nmrodelo c22ad47
blindess to blindness in disabled_programs.yaml
nmrodelo e8320d3
added legal docs
nmrodelo a48eb47
update disabled formula
nmrodelo cb8a2a1
add tests
nmrodelo 02b667e
add disabled program variables, edit is_usda_disabled formula
nmrodelo d17a9a8
formula changes
nmrodelo 37eb67e
Update openfisca_us/variables/usda/usda.py
nmrodelo 96e1b1b
change any_ to np.any
nmrodelo 914eaa1
update paren
nmrodelo 7f6d708
add labels and documentation to snap.py
nmrodelo db6a946
add new .py files for ssi and ssdi programs, rename disabled_programs…
nmrodelo aa75588
rename
nmrodelo 74b9bd5
add tests for new programs, formatting
nmrodelo 5264cd5
Merge branch 'master' into usda_disabled
nikhilwoodruff 1232520
add is to variable names, fix formatting in labels and documentation
nmrodelo 3197802
Merge branch 'usda_disabled' of https://github.com/nmrodelo/openfisca…
nmrodelo fa64137
Update openfisca_us/variables/usda/usda.py
nmrodelo 020182e
Merge branch 'master' into usda_disabled
nikhilwoodruff 2b6c65d
delete redundant ccdf vars
nmrodelo 8329eb8
add is to class names
nmrodelo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| description: Program participation that qualify individuals as disabled under USDA rules | ||
|
|
||
| values: | ||
| 2021-01-01: | ||
| - is_ssi_disabled | ||
| - ssdi | ||
| - is_permanently_disabled_veteran | ||
| - is_surviving_spouse_of_disabled_veteran | ||
| - is_surviving_child_of_disabled_veteran | ||
|
|
||
| metadata: | ||
| reference: | ||
| - title: 'SNAP Special Rules for the Elderly or Disabled' | ||
| href: https://www.fns.usda.gov/snap/eligibility/elderly-disabled-special-rules#Who%20is%20elderly? | ||
26 changes: 26 additions & 0 deletions
26
openfisca_us/tests/policy/baseline/usda/is_usda_disabled.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| - name: People without any disability flags are not USDA disabled | ||
| period: 2021 | ||
| input: | ||
| people: | ||
| person_1: | ||
| age: 30 | ||
| output: | ||
| is_usda_disabled: False | ||
|
|
||
| - name: SSI disabled people are USDA disabled | ||
| period: 2021 | ||
| input: | ||
| people: | ||
| person_1: | ||
| is_ssi_disabled: True | ||
| output: | ||
| is_usda_disabled: True | ||
|
|
||
| - name: People receiving SSDI are USDA disabled | ||
| period: 2021 | ||
| input: | ||
| people: | ||
| person_1: | ||
| ssdi: 100 | ||
| output: | ||
| is_usda_disabled: True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| from openfisca_core.model_api import * | ||
| from openfisca_us.entities import * | ||
| from openfisca_us.tools.general import * | ||
|
|
||
|
|
||
| class ssdi(Variable): | ||
| value_type = float | ||
| entity = Person | ||
| definition_period = YEAR | ||
| documentation = "Social Security Disability Insurance amount" | ||
| label = "Social Security Disability Insurance" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| from openfisca_core.model_api import * | ||
| from openfisca_us.entities import * | ||
| from openfisca_us.tools.general import * | ||
|
|
||
|
|
||
| class is_ssi_disabled(Variable): | ||
| value_type = bool | ||
| entity = Person | ||
| definition_period = YEAR | ||
| documentation = "Indicates whether a person is disabled for the Supplemental Security Income program" | ||
| label = "SSI disabled" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.