Skip to content

Commit

Permalink
Move Medicaid parameters to CSVs (PolicyEngine#5101)
Browse files Browse the repository at this point in the history
* Move Medicaid parameters to CSVs
Fixes PolicyEngine#5100

* Actually add CSVs
  • Loading branch information
nikhilwoodruff authored Sep 19, 2024
1 parent 3fc9939 commit d16a043
Show file tree
Hide file tree
Showing 8 changed files with 24,637 additions and 62 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ venv/

# Data

**/*.csv
**/_build
**/.ipynb_checkpoints
.coverage
Expand Down
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:
changed:
- Medicaid national parameters run off a CSV, cutting runtime by ~8%.
3 changes: 0 additions & 3 deletions policyengine_us/parameters/__init__.py
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)
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"
)
Loading

0 comments on commit d16a043

Please sign in to comment.