Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
fixed:
- Changed weekly_hours_worked to weekly_hours_worked_before_lsr in SNAP formula to avoid circular dependency.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
is_full_time_student: true
age: 18
is_disabled: false
weekly_hours_worked: false
weekly_hours_worked_before_lsr: false
is_parent: false
output:
is_snap_ineligible_student: true
Expand All @@ -15,7 +15,7 @@
is_full_time_student: true
age: 17
is_disabled: false
weekly_hours_worked: false
weekly_hours_worked_before_lsr: false
is_parent: false
output:
is_snap_ineligible_student: false
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def formula(person, period, parameters):
p = parameters(period).gov.usda.snap.student
age_eligible = p.age_threshold.calc(age)
disabled = person("is_disabled", period)
hours_worked = person("weekly_hours_worked", period)
hours_worked = person("weekly_hours_worked_before_lsr", period)
hours_eligible = hours_worked >= p.working_hours_threshold
# The parental status applies to children under 6 (under 12
# if no care available)
Expand Down