Commit 539c421
Refactor piecewise polynomial (implement GEP-8) (#1132)
Refactor piecewise polynomial YAML and code for GEP-08, twin to [TTSIM #76](ttsim-dev/ttsim#76)
Convert all piecewise polynomial YAML parameters from numbered dict
format
to ordered lists with explicit interval strings:
- solidaritätszuschlag, einkommensteuertarif, vorsorge, behinderung,
wohngeld, grundrente, bürgergeld/arbeitslosengeld_2 freibeträge,
lohnsteuer vorsorge
- Rename keys: rate_linear->slope, rate_quadratic->quadratic,
intercept_at_lower_threshold->intercept
- Update Python code to use new API (parameter_list instead of
parameter_dict, new key names)
- Fix rates shape indexing: [coeff, interval] -> [interval, coeff]
in lohnsteuer.py and solidaritätszuschlag.py
- Add extend_extend_intervals_to_real_line to fix stale adjacent
intervals
after upsert_tree merges in param_functions
- Re-export extend_extend_intervals_to_real_line from gettsim.tt
- Aside: Lots of infrastructure updates.
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Marvin Immesberger <immesberger@posteo.de>
Co-authored-by: Marvin Immesberger <74215010+MImmesberger@users.noreply.github.com>1 parent e0d468e commit 539c421
File tree
39 files changed
+7482
-5565
lines changed- .github/workflows
- docs
- geps
- how_to_guides
- src/gettsim
- germany
- arbeitslosengeld_2
- bürgergeld
- einkommensteuer
- abzüge
- einkünfte/sonstige/rente
- grundsicherung/im_alter
- lohnsteuer
- solidaritätszuschlag
- sozialversicherung
- kranken/beitrag
- pflege/beitrag
- rente/grundrente
- wohngeld
- plot/dag
- tests_germany
- tt
39 files changed
+7482
-5565
lines changedSubmodule .ai-instructions added at c852f89
Lines changed: 24 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 15 | | |
31 | 16 | | |
32 | 17 | | |
| |||
60 | 45 | | |
61 | 46 | | |
62 | 47 | | |
63 | | - | |
| 48 | + | |
64 | 49 | | |
65 | 50 | | |
66 | 51 | | |
| |||
70 | 55 | | |
71 | 56 | | |
72 | 57 | | |
73 | | - | |
| 58 | + | |
74 | 59 | | |
75 | 60 | | |
76 | 61 | | |
77 | | - | |
| 62 | + | |
78 | 63 | | |
79 | 64 | | |
80 | 65 | | |
81 | | - | |
| 66 | + | |
82 | 67 | | |
83 | 68 | | |
84 | 69 | | |
85 | | - | |
| 70 | + | |
86 | 71 | | |
87 | 72 | | |
88 | 73 | | |
89 | | - | |
| 74 | + | |
90 | 75 | | |
91 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
16 | 27 | | |
17 | 28 | | |
18 | 29 | | |
19 | 30 | | |
20 | 31 | | |
21 | 32 | | |
| 33 | + | |
22 | 34 | | |
| 35 | + | |
23 | 36 | | |
| 37 | + | |
24 | 38 | | |
25 | 39 | | |
26 | | - | |
27 | 40 | | |
28 | 41 | | |
29 | 42 | | |
30 | 43 | | |
31 | 44 | | |
32 | | - | |
33 | 45 | | |
34 | 46 | | |
35 | 47 | | |
| |||
39 | 51 | | |
40 | 52 | | |
41 | 53 | | |
42 | | - | |
43 | | - | |
44 | 54 | | |
45 | 55 | | |
46 | 56 | | |
47 | 57 | | |
48 | 58 | | |
49 | | - | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
61 | 71 | | |
62 | 72 | | |
63 | 73 | | |
64 | | - | |
| 74 | + | |
65 | 75 | | |
66 | 76 | | |
67 | 77 | | |
| |||
78 | 88 | | |
79 | 89 | | |
80 | 90 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 91 | + | |
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
| |||
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 100 | | |
104 | 101 | | |
0 commit comments