Commit cf3c940
Read retirement limits from policyengine-us parameters (#566)
* Read retirement limits from policyengine-us parameters
Replace hard-coded RETIREMENT_LIMITS dict with a shared utility that
reads from policyengine-us's parameter tree at runtime. This ensures
limits stay in sync as policyengine-us is updated, and eliminates a
maintenance risk when the same dict is duplicated in puf_impute.py
(PR #554).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fixup! Read retirement limits from policyengine-us parameters
* Revert test formatting to match CI Black version
The fixup reformatted SQL strings in test_database_build.py using
a newer Black version that disagrees with CI's lgeiger/black-action.
Revert to the original formatting that CI accepts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add tests for retirement limits utility
Verifies get_retirement_limits returns correct IRS contribution
limits for 2020, 2023, and 2025 by comparing against known values.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Handle both old and new policyengine-us catch-up parameter layouts
The SECURE 2.0 update (merged to pe-us main, not yet released)
renames children["401k"] to children["k401"] and changes it from
a simple int to an age-bracketed scale. Handle both layouts so the
code works with the current release and future releases.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Use k401 parameter directly, bump policyengine-us>=1.572.5
Drop dual-path handling in favor of the current parameter layout
(k401 scale with age brackets from SECURE 2.0). Bump the minimum
policyengine-us version to 1.572.5 which introduced this parameter.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 090cfa1 commit cf3c940
6 files changed
Lines changed: 83 additions & 49 deletions
File tree
- changelog.d
- policyengine_us_data
- datasets/cps
- tests
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
| 652 | + | |
| 653 | + | |
695 | 654 | | |
696 | | - | |
| 655 | + | |
| 656 | + | |
697 | 657 | | |
698 | 658 | | |
699 | 659 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments