Skip to content

Commit

Permalink
Merge pull request #352 from jdebacker/tc321
Browse files Browse the repository at this point in the history
Updates for Tax-Calculator 3.2.1
  • Loading branch information
jdebacker committed Sep 11, 2021
2 parents a01d132 + b3bd344 commit c9f42d1
Show file tree
Hide file tree
Showing 14 changed files with 1,394 additions and 1,384 deletions.
503 changes: 264 additions & 239 deletions ccc/default_parameters.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ccc/tests/run_ccc_asset_output.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ccc/tests/run_ccc_industry_output.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ccc/tests/test_calculator.py
Expand Up @@ -303,7 +303,7 @@ def test_p_param_return_value():
dp = DepreciationParams()
calc1 = Calculator(p, dp, assets)
obj = calc1.p_param('tau_int')
assert np.allclose(obj, np.array([0.31774924]))
assert np.allclose(obj, np.array([0.31126241200353805]))


def test_p_param_set_value():
Expand Down
2 changes: 1 addition & 1 deletion ccc/tests/test_parameters.py
Expand Up @@ -91,7 +91,7 @@ def test_update_bad_revision1():
first_line = spec.errors['profit_rate'][0]
print(first_line)
expected_first_line =\
'profit_rate[year=2021] 1.2 > max 1.0 '
'profit_rate[year=2022] 1.2 > max 1.0 '
assert first_line == expected_first_line


Expand Down
4 changes: 2 additions & 2 deletions ccc/utils.py
Expand Up @@ -7,7 +7,7 @@
import pandas as pd

# Default year for model runs
DEFAULT_START_YEAR = 2021
DEFAULT_START_YEAR = 2022

# Year of asset data
ASSET_DATA_CSV_YEAR = 2013
Expand All @@ -16,7 +16,7 @@
RECORDS_START_YEAR = 2011

# Latest year TaxData extrapolates to
TC_LAST_YEAR = 2030
TC_LAST_YEAR = 2031


def to_str(x):
Expand Down
4 changes: 2 additions & 2 deletions cs-config/cs_config/tests/test_functions.py
Expand Up @@ -42,15 +42,15 @@ class TestFunctions1(CoreTestFunctions):
"Business Tax Parameters": {
"CIT_rate": [
{
"year": 2021,
"year": 2022,
"value": 0.25
}
]
},
"Individual and Payroll Tax Parameters": {
"FICA_ss_trt": [
{
"year": 2021,
"year": 2022,
"value": 0.14
}
]
Expand Down
37 changes: 11 additions & 26 deletions docs/book/_toc.yml
@@ -1,42 +1,27 @@
- file: content/intro
numbered: false

- part: CCC Example
format: jb-book
root: content/intro
parts:
- caption: CCC Example
chapters:
- file: content/examples/PSL_demo

- part: Web Application
- caption: Web Application
chapters:
- file: content/webapp

- part: Contributing to CCC
- caption: Contributing to CCC
chapters:
- file: content/contributing/contributor_guide

- part: CCC API
- caption: CCC API
chapters:
- file: content/api/public_api
sections:
- file: content/api/calcfunctions
- file: content/api/calculator
- file: content/api/data
- file: content/api/get_taxcalc_rates
- file: content/api/parameters
- file: content/api/paramfunctions
- file: content/api/utils

- part: CCC Guide
- caption: CCC Guide
chapters:
- file: content/CCC_guide

- part: About
- caption: About
chapters:
- file: content/license

- part: References
- caption: References
chapters:
- file: content/references

- part: Citations of CCC
- caption: Citations of CCC
chapters:
- file: content/citations
456 changes: 228 additions & 228 deletions example_output/baseline_byasset_expected.csv

Large diffs are not rendered by default.

308 changes: 154 additions & 154 deletions example_output/baseline_byindustry_expected.csv

Large diffs are not rendered by default.

386 changes: 193 additions & 193 deletions example_output/changed_byasset_expected.csv

Large diffs are not rendered by default.

308 changes: 154 additions & 154 deletions example_output/changed_byindustry_expected.csv

Large diffs are not rendered by default.

456 changes: 228 additions & 228 deletions example_output/reform_byasset_expected.csv

Large diffs are not rendered by default.

308 changes: 154 additions & 154 deletions example_output/reform_byindustry_expected.csv

Large diffs are not rendered by default.

0 comments on commit c9f42d1

Please sign in to comment.