Commit 6d3482c
authored
Add and expose time converters targeting stocks (#56)
### What problem do you want to solve?
This PR
- renames time converters for flow variables (e.g. earnings **per**
month) from `x_to_y` to `per_x_to_per_y` with x, y being our usual time
abbreviations.
- adds time converters for stock variables (e.g. number of unemployment
periods on the monthly **level**) named `x_to_y`
- exposes the stock time converters to make them importable via
`ttsim.interface_dag_elements`.1 parent 755304b commit 6d3482c
File tree
8 files changed
+1137
-609
lines changed- src/ttsim
- interface_dag_elements
- tests
- interface_dag_elements
8 files changed
+1137
-609
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
0 commit comments