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 Medicaid parameters to CSVs (PolicyEngine#5101)
* Move Medicaid parameters to CSVs Fixes PolicyEngine#5100 * Actually add CSVs
- Loading branch information
1 parent
3fc9939
commit d16a043
Showing
8 changed files
with
24,637 additions
and
62 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 |
---|---|---|
|
@@ -29,7 +29,6 @@ venv/ | |
|
||
# Data | ||
|
||
**/*.csv | ||
**/_build | ||
**/.ipynb_checkpoints | ||
.coverage | ||
|
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 @@ | ||
- bump: patch | ||
changes: | ||
changed: | ||
- Medicaid national parameters run off a CSV, cutting runtime by ~8%. |
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
from pathlib import Path | ||
from policyengine_core.parameters import ParameterNode | ||
|
||
default_parameters = ParameterNode(directory_path=Path(__file__).parent) |
9 changes: 9 additions & 0 deletions
9
policyengine_us/parameters/gov/hhs/medicaid/geography/__init__.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,9 @@ | ||
import pandas as pd | ||
from pathlib import Path | ||
|
||
FOLDER = Path(__file__).parent | ||
|
||
medicaid_rating_areas = pd.read_csv(FOLDER / "medicaid_rating_areas.csv") | ||
second_lowest_silver_plan_cost = pd.read_csv( | ||
FOLDER / "second_lowest_silver_plan_cost.csv" | ||
) |
Oops, something went wrong.