forked from PolicyEngine/policyengine-us
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move three ACA parameters and rename an ACA variable (PolicyEngine#3331)
* Move parameters and rename variable * Add index.yaml to parameters/gov/slspc to prevent users from changing
- Loading branch information
1 parent
ce34953
commit b633823
Showing
13 changed files
with
39 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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,5 @@ | ||
- bump: patch | ||
changes: | ||
fixed: | ||
- Relocate some ACA parameters to clarify their role. | ||
- Rename one ACA variable to clarify its role. |
This file contains 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,4 @@ | ||
metadata: | ||
propagate_metadata_to_children: true | ||
economy: false | ||
household: false |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
..._us/parameters/gov/aca/max_adult_age.yaml → ...rameters/gov/aca/slspc/max_adult_age.yaml
This file contains 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
4 changes: 2 additions & 2 deletions
4
..._us/parameters/gov/aca/max_child_age.yaml → ...rameters/gov/aca/slspc/max_child_age.yaml
This file contains 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
6 changes: 6 additions & 0 deletions
6
policyengine_us/tests/policy/baseline/gov/aca/slspc/aca_slspc_trimmed_age.yaml
This file contains 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,6 @@ | ||
- name: aca_slspc_trimmed_age unit test 1 | ||
period: 2022 | ||
input: | ||
age: [0, 11, 15, 20, 21, 30, 40, 50, 60, 64, 65, 70] | ||
output: | ||
aca_slspc_trimmed_age: [14, 14, 15, 20, 21, 30, 40, 50, 60, 64, 64, 64] |
6 changes: 0 additions & 6 deletions
6
policyengine_us/tests/policy/baseline/gov/aca/slspc/aca_trimmed_age.yaml
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
policyengine_us/tests/policy/baseline/gov/aca/slspc/person_aca_slspc_ca.yaml
This file contains 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 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 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
16 changes: 16 additions & 0 deletions
16
policyengine_us/variables/gov/aca/slspc/aca_slspc_trimmed_age.py
This file contains 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,16 @@ | ||
from policyengine_us.model_api import * | ||
|
||
|
||
class aca_slspc_trimmed_age(Variable): | ||
value_type = int | ||
entity = Person | ||
label = ( | ||
"Age clipped to be in ACA SLSPC " | ||
"last_same_child_age, max_adult_age range" | ||
) | ||
definition_period = YEAR | ||
|
||
def formula(person, period, parameters): | ||
age = person("age", period) | ||
p = parameters(period).gov.aca.slspc | ||
return max_(p.last_same_child_age, min_(p.max_adult_age, age)) |
13 changes: 0 additions & 13 deletions
13
policyengine_us/variables/gov/aca/slspc/aca_trimmed_age.py
This file was deleted.
Oops, something went wrong.
This file contains 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