taxcalc 5.2.0__py3-none-any.whl → 5.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- taxcalc/__init__.py +3 -3
- taxcalc/calcfunctions.py +2 -2
- taxcalc/calculator.py +3 -3
- taxcalc/cli/tc.py +15 -11
- taxcalc/data.py +1 -1
- taxcalc/decorators.py +9 -8
- taxcalc/growfactors.py +2 -1
- taxcalc/policy.py +6 -5
- taxcalc/policy_current_law.json +31 -631
- taxcalc/puf_ratios.csv +24 -24
- taxcalc/puf_weights.csv.gz +0 -0
- taxcalc/reforms/ARPA.out.csv +9 -9
- taxcalc/taxcalcio.py +41 -26
- taxcalc/tests/conftest.py +1 -1
- taxcalc/tests/puf_var_correl_coeffs_2016.csv +24 -24
- taxcalc/tests/puf_var_wght_means_by_year.csv +11 -11
- taxcalc/tests/pufcsv_agg_expect.csv +20 -20
- taxcalc/tests/pufcsv_mtr_expect.txt +21 -21
- taxcalc/tests/reforms.json +3 -1
- taxcalc/tests/reforms_expect.csv +48 -48
- taxcalc/tests/test_4package.py +8 -9
- taxcalc/tests/test_calculator.py +151 -151
- taxcalc/tests/test_compare.py +2 -2
- taxcalc/tests/test_consumption.py +2 -2
- taxcalc/tests/test_cpscsv.py +2 -2
- taxcalc/tests/test_decorators.py +57 -52
- taxcalc/tests/test_growdiff.py +2 -2
- taxcalc/tests/test_parameters.py +59 -53
- taxcalc/tests/test_policy.py +154 -154
- taxcalc/tests/test_puf_var_stats.py +1 -1
- taxcalc/tests/test_pufcsv.py +3 -3
- taxcalc/tests/test_records.py +5 -1
- taxcalc/tests/test_reforms.py +101 -99
- taxcalc/tests/test_taxcalcio.py +10 -4
- taxcalc/utils.py +3 -3
- {taxcalc-5.2.0.dist-info → taxcalc-5.3.0.dist-info}/METADATA +3 -6
- {taxcalc-5.2.0.dist-info → taxcalc-5.3.0.dist-info}/RECORD +41 -42
- taxcalc/reforms/clp.out.csv +0 -10
- {taxcalc-5.2.0.dist-info → taxcalc-5.3.0.dist-info}/WHEEL +0 -0
- {taxcalc-5.2.0.dist-info → taxcalc-5.3.0.dist-info}/entry_points.txt +0 -0
- {taxcalc-5.2.0.dist-info → taxcalc-5.3.0.dist-info}/licenses/LICENSE +0 -0
- {taxcalc-5.2.0.dist-info → taxcalc-5.3.0.dist-info}/top_level.txt +0 -0
@@ -5,59 +5,59 @@ PTAX mtr histogram bin edges:
|
|
5
5
|
ITAX mtr histogram bin edges:
|
6
6
|
[-1.0, -0.3, -0.2, -0.1, 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 1.0]
|
7
7
|
PTAX and ITAX mtr histogram bin counts for e00200p:
|
8
|
-
252868 : 0
|
9
|
-
252868 : 7375 73 2056
|
8
|
+
252868 : 0 27589 0 0 0 0 0 225279 0 0
|
9
|
+
252868 : 7375 73 2056 13092 45752 76594 50874 31261 25021 770
|
10
10
|
PTAX and ITAX mtr histogram bin counts for e00200s:
|
11
|
-
119177 : 0
|
12
|
-
119177 : 1449 22
|
11
|
+
119177 : 0 19601 0 0 0 0 0 99576 0 0
|
12
|
+
119177 : 1449 22 792 2760 11456 31293 26220 22338 22285 562
|
13
13
|
PTAX and ITAX mtr histogram bin counts for e00900p:
|
14
14
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
15
|
-
252868 : 6835 305 1552
|
15
|
+
252868 : 6835 305 1552 11868 42851 71250 52249 30574 31283 4101
|
16
16
|
PTAX and ITAX mtr histogram bin counts for e00300:
|
17
17
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
18
|
-
252868 : 0 0 0 0
|
18
|
+
252868 : 0 0 0 0 67638 76842 46566 31860 29142 820
|
19
19
|
PTAX and ITAX mtr histogram bin counts for e00400:
|
20
20
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
21
|
-
252868 : 0 0 0 0
|
21
|
+
252868 : 0 0 0 0 249270 3332 264 2 0 0
|
22
22
|
PTAX and ITAX mtr histogram bin counts for e00600:
|
23
23
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
24
|
-
252868 : 0 0 0 0
|
24
|
+
252868 : 0 0 0 0 67638 76842 46566 31860 29142 820
|
25
25
|
PTAX and ITAX mtr histogram bin counts for e00650:
|
26
26
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
27
|
-
252868 : 0 0 5 62
|
27
|
+
252868 : 0 0 5 62 145111 46818 59777 655 414 26
|
28
28
|
PTAX and ITAX mtr histogram bin counts for e01400:
|
29
29
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
30
|
-
252868 : 0 0 0 0
|
30
|
+
252868 : 0 0 0 0 67639 76869 50256 32344 24980 780
|
31
31
|
PTAX and ITAX mtr histogram bin counts for e01700:
|
32
32
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
33
|
-
252868 : 0 0 0 0
|
33
|
+
252868 : 0 0 0 0 67639 76869 50256 32344 24980 780
|
34
34
|
PTAX and ITAX mtr histogram bin counts for e02000:
|
35
35
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
36
|
-
252868 : 0 0 0 0
|
36
|
+
252868 : 0 0 0 0 67638 76842 46566 31860 29142 820
|
37
37
|
PTAX and ITAX mtr histogram bin counts for e02400:
|
38
38
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
39
|
-
252868 : 0 0 0 0
|
39
|
+
252868 : 0 0 0 0 114131 44785 59359 33593 967 33
|
40
40
|
PTAX and ITAX mtr histogram bin counts for p22250:
|
41
41
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
42
|
-
252868 : 0 0 1 1
|
42
|
+
252868 : 0 0 1 1 79203 76747 53033 24962 18409 512
|
43
43
|
PTAX and ITAX mtr histogram bin counts for p23250:
|
44
44
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
45
|
-
252868 : 0 0 1 48
|
45
|
+
252868 : 0 0 1 48 152419 43642 51315 2833 2562 48
|
46
46
|
PTAX and ITAX mtr histogram bin counts for e18500:
|
47
47
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
48
|
-
252868 :
|
48
|
+
252868 : 25486 25946 19626 7738 174072 0 0 0 0 0
|
49
49
|
PTAX and ITAX mtr histogram bin counts for e19200:
|
50
50
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
51
|
-
252868 :
|
51
|
+
252868 : 39721 32896 19923 4941 155387 0 0 0 0 0
|
52
52
|
PTAX and ITAX mtr histogram bin counts for e26270:
|
53
53
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
54
|
-
252868 : 0 0 0 0
|
54
|
+
252868 : 0 0 0 0 67639 76869 50256 32344 24980 780
|
55
55
|
PTAX and ITAX mtr histogram bin counts for e19800:
|
56
56
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
57
|
-
252868 :
|
57
|
+
252868 : 39573 32462 19847 4913 156073 0 0 0 0 0
|
58
58
|
PTAX and ITAX mtr histogram bin counts for e20100:
|
59
59
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
60
|
-
252868 :
|
60
|
+
252868 : 39488 32427 19788 4907 156258 0 0 0 0 0
|
61
61
|
PTAX and ITAX mtr histogram bin counts for k1bx14p:
|
62
62
|
252868 : 252868 0 0 0 0 0 0 0 0 0
|
63
|
-
252868 : 6835 305 1552
|
63
|
+
252868 : 6835 305 1552 11868 42851 71250 52249 30574 31283 4101
|
taxcalc/tests/reforms.json
CHANGED
@@ -504,7 +504,9 @@
|
|
504
504
|
"start_year": 2017,
|
505
505
|
"value": {"FST_AGI_trt": 0.3,
|
506
506
|
"FST_AGI_thd_lo": [1.0e6, 1.0e6, 0.5e6, 1.0e6, 1.0e6],
|
507
|
-
"
|
507
|
+
"FST_AGI_thd_lo-indexed": true,
|
508
|
+
"FST_AGI_thd_hi": [2.0e6, 2.0e6, 1.0e6, 2.0e6, 2.0e6],
|
509
|
+
"FST_AGI_thd_hi-indexed": true},
|
508
510
|
"name": "Increase FST rate from zero to 0.30 beginning in 2017",
|
509
511
|
"output_type": "iitax",
|
510
512
|
"compare_with": {"Tax Foundation": [321, "ten-year(2016-25)",
|
taxcalc/tests/reforms_expect.csv
CHANGED
@@ -1,61 +1,61 @@
|
|
1
1
|
rid,res1,res2,res3,res4
|
2
|
-
1,
|
3
|
-
2,
|
4
|
-
3,
|
2
|
+
1,62.1,63.1,66.2,68.9
|
3
|
+
2,54.2,58.6,53.5,62.0
|
4
|
+
3,75.1,76.2,80.3,84.3
|
5
5
|
4,0.0,0.0,0.0,0.0
|
6
6
|
5,0.0,0.0,0.0,0.0
|
7
|
-
6,
|
8
|
-
7,
|
9
|
-
8,1.9,
|
10
|
-
9,
|
11
|
-
10,
|
12
|
-
11,
|
7
|
+
6,38.4,39.2,40.0,41.0
|
8
|
+
7,9.8,9.9,10.5,11.0
|
9
|
+
8,1.9,2.0,2.1,2.2
|
10
|
+
9,4.4,4.3,4.9,5.3
|
11
|
+
10,8.2,8.6,9.1,9.5
|
12
|
+
11,2.4,2.7,2.6,2.8
|
13
13
|
12,0.1,0.1,0.1,0.1
|
14
|
-
13,-33.
|
14
|
+
13,-33.5,-32.1,-35.0,-36.5
|
15
15
|
14,-0.1,-0.1,-0.1,-0.1
|
16
|
-
15,0.
|
16
|
+
15,0.2,0.2,0.2,0.3
|
17
17
|
16,-1.0,-1.0,-1.5,-1.6
|
18
18
|
17,-0.2,-0.2,-0.3,-0.3
|
19
|
-
18,
|
20
|
-
19,
|
21
|
-
20,
|
22
|
-
21,
|
23
|
-
22,9.
|
24
|
-
23,0.
|
25
|
-
24,
|
26
|
-
25,
|
19
|
+
18,35.8,37.3,40.2,42.5
|
20
|
+
19,68.2,69.9,75.1,80.2
|
21
|
+
20,103.3,106.9,116.1,122.6
|
22
|
+
21,68.7,70.7,76.4,80.6
|
23
|
+
22,9.6,11.0,10.0,10.3
|
24
|
+
23,0.3,0.3,0.3,0.4
|
25
|
+
24,52.5,54.2,57.2,60.3
|
26
|
+
25,2.0,2.1,2.2,2.3
|
27
27
|
26,0.1,0.1,0.1,0.1
|
28
|
-
27,0.
|
29
|
-
28,
|
30
|
-
29,
|
31
|
-
30,-6.
|
32
|
-
31,
|
33
|
-
32,12.
|
34
|
-
33,7.
|
35
|
-
34,-1.
|
36
|
-
35,-2.9,-2.8,-3.
|
37
|
-
36,3.
|
38
|
-
37,
|
39
|
-
38,9.
|
40
|
-
39,-0.6,-0.
|
41
|
-
40,
|
42
|
-
41,0.
|
28
|
+
27,0.2,0.2,0.2,0.2
|
29
|
+
28,4.0,3.8,4.5,4.9
|
30
|
+
29,15.2,13.8,17.9,19.4
|
31
|
+
30,-6.4,-6.2,-1.6,-1.6
|
32
|
+
31,58.2,58.6,62.5,66.3
|
33
|
+
32,12.6,12.1,14.0,15.1
|
34
|
+
33,7.6,7.1,8.4,9.1
|
35
|
+
34,-1.3,-0.9,-1.5,-1.6
|
36
|
+
35,-2.9,-2.8,-3.4,-3.5
|
37
|
+
36,3.2,3.3,3.6,3.9
|
38
|
+
37,30.9,32.0,35.4,37.3
|
39
|
+
38,9.7,10.0,11.2,11.8
|
40
|
+
39,-0.6,-0.6,-0.7,-0.7
|
41
|
+
40,56.0,53.5,52.7,51.9
|
42
|
+
41,0.6,0.6,0.7,0.7
|
43
43
|
42,-0.2,-0.2,-0.2,-0.2
|
44
|
-
43,
|
45
|
-
44,1.
|
46
|
-
45,-2.1,-2.0,-2.
|
47
|
-
46,-2.
|
44
|
+
43,71.8,68.8,67.6,69.4
|
45
|
+
44,1.1,1.1,1.1,1.2
|
46
|
+
45,-2.1,-2.0,-2.1,-2.2
|
47
|
+
46,-2.0,-1.7,-2.0,-2.1
|
48
48
|
47,-0.8,-0.8,-0.8,-0.7
|
49
49
|
48,-0.0,-0.0,-0.0,-0.0
|
50
|
-
49,-
|
51
|
-
50,-0.
|
50
|
+
49,-27.2,-24.3,-31.9,-34.8
|
51
|
+
50,-0.4,-0.4,-0.4,-0.4
|
52
52
|
51,-187.0,-187.5,-193.6,-201.6
|
53
|
-
52,-
|
54
|
-
53,
|
53
|
+
52,-129.1,-128.5,-131.9,-136.9
|
54
|
+
53,31.6,34.1,32.5,42.1
|
55
55
|
54,0.0,0.0,0.0,0.0
|
56
|
-
55,-
|
57
|
-
56,-
|
58
|
-
57
|
59
|
-
58,-17.4,-
|
60
|
-
59,-12.
|
61
|
-
60,-46.9,-48.1,-49.
|
56
|
+
55,-68.2,-68.4,-68.7,-68.7
|
57
|
+
56,-68.8,-68.9,-69.2,-69.2
|
58
|
+
57,1.4,1.7,1.7,1.4
|
59
|
+
58,-16.8,-17.4,-23.7,-19.2
|
60
|
+
59,-12.2,-12.2,-21.2,-13.3
|
61
|
+
60,-46.9,-48.1,-49.3,-52.1
|
taxcalc/tests/test_4package.py
CHANGED
@@ -66,9 +66,9 @@ def test_for_consistency(tests_path):
|
|
66
66
|
'pycodestyle',
|
67
67
|
'pylint',
|
68
68
|
'coverage',
|
69
|
-
|
70
|
-
|
71
|
-
|
69
|
+
'pip',
|
70
|
+
'jupyter-book',
|
71
|
+
'setuptools'
|
72
72
|
])
|
73
73
|
# read conda.recipe/meta.yaml requirements
|
74
74
|
meta_file = os.path.join(tests_path, '..', '..',
|
@@ -86,10 +86,10 @@ def test_for_consistency(tests_path):
|
|
86
86
|
envr = yaml.safe_load(stream)
|
87
87
|
|
88
88
|
env = []
|
89
|
-
for dep in envr[
|
89
|
+
for dep in envr['dependencies']:
|
90
90
|
if isinstance(dep, dict):
|
91
|
-
assert list(dep.keys()) == [
|
92
|
-
env += dep[
|
91
|
+
assert list(dep.keys()) == ['pip']
|
92
|
+
env += dep['pip']
|
93
93
|
else:
|
94
94
|
env.append(dep)
|
95
95
|
env = set(env)
|
@@ -102,9 +102,8 @@ def test_for_consistency(tests_path):
|
|
102
102
|
with open(setup_file, 'r', encoding='utf-8') as f:
|
103
103
|
setup_py_content = f.read()
|
104
104
|
setup = set(extract_install_requires(setup_py_content))
|
105
|
-
|
106
|
-
print(
|
107
|
-
print("Meta packages = ", bld)
|
105
|
+
print('Setup packages = ', setup)
|
106
|
+
print('Meta packages = ', bld)
|
108
107
|
# if package in both, confirm that the version is the same
|
109
108
|
for pkg in setup.intersection(bld):
|
110
109
|
assert pkg in setup
|