Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge #49

Merged
merged 63 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
2eba47f
remove files in the taxsim27 directory
jdebacker Jun 17, 2024
f841d94
update readme to ref taxsim 35
jdebacker Jun 18, 2024
2aab1e4
update taxsim35 valid description
jdebacker Jun 18, 2024
9668b6c
update bash file for 35 tests
jdebacker Jun 18, 2024
3e6c650
use shutils to remote tree
jdebacker Jun 18, 2024
5968cc3
remove unused files
jdebacker Jun 21, 2024
38be0ec
Update to new tmd weights
martinholmer Jun 22, 2024
2c943aa
fix ctc description
jdebacker Jun 25, 2024
39c1ee2
Merge pull request #2762 from jdebacker/remove_taxsim27
jdebacker Jun 27, 2024
64c29c6
Update taxcalc/tmd_weights.csv.gz file.
martinholmer Jul 4, 2024
0c03933
Merge pull request #2764 from martinholmer/new-tmd-files
martinholmer Jul 4, 2024
1c0bac2
Add ctc_total variable
martinholmer Jul 5, 2024
30a9771
Merge pull request #2765 from martinholmer/add-ctc_total-variable
martinholmer Jul 5, 2024
2886fa0
Add ctc_refundable variable
martinholmer Jul 6, 2024
b9bfe1f
Merge pull request #2766 from martinholmer/add-ctc_refundable-variable
martinholmer Jul 6, 2024
2dd8ea5
Update taxcalc/tmd_weights.csv.gz file
martinholmer Jul 7, 2024
bb2c566
Merge pull request #2767 from martinholmer/tmd-files
martinholmer Jul 7, 2024
eeb02aa
Correct 2018 EITC_ps* parameter values
martinholmer Jul 8, 2024
6f9ef38
Update 2018 CPS and PUF aggregate test results
martinholmer Jul 8, 2024
9a8cbfd
Merge pull request #2768 from martinholmer/fix-2018-eitc-params
martinholmer Jul 8, 2024
3659464
Add exact calculation logic in CTC_new function
martinholmer Jul 8, 2024
3779d50
Update tests to reflect new exact argument of the CTC_new function
martinholmer Jul 8, 2024
9b758a0
Merge pull request #2769 from martinholmer/fix-arpa-ctc-phaseout
martinholmer Jul 8, 2024
fa33204
Fix 2021 0kids EITC_ps_MarriedJ parameter value
martinholmer Jul 8, 2024
9e8ec6e
Merge pull request #2770 from martinholmer/fix-2021-eitc-param
martinholmer Jul 8, 2024
2e508fa
Update Tax-Calculator version in the docs/usage/tcja_after_2025.md file
martinholmer Jul 9, 2024
1679d48
Add mention of custom growfactors file in docs
martinholmer Jul 10, 2024
1d24bb4
Merge pull request #2771 from martinholmer/update-tcja-docs
martinholmer Jul 10, 2024
0066f6a
Newer tmd-related files after merge of TMD PR #131
martinholmer Jul 10, 2024
781163a
Merge pull request #2772 from martinholmer/newer-tmd-files
martinholmer Jul 10, 2024
73d367f
Tax-Calculator 4.1.0
martinholmer Jul 11, 2024
3a73e46
Merge pull request #2773 from martinholmer/4-1-0
jdebacker Jul 11, 2024
6b21f95
Update to final phase3 tmd files
martinholmer Jul 21, 2024
e608c3f
Merge pull request #2774 from martinholmer/phase3-tmd-files
martinholmer Jul 21, 2024
b868c9b
Update to 4.2.0 version of Tax-Calculator
martinholmer Jul 21, 2024
1b696b4
Merge pull request #2775 from martinholmer/4-2-0
martinholmer Jul 21, 2024
c69bd14
add growfactors for current policy baseline
jdebacker Jul 22, 2024
e9900f2
Merge pull request #2777 from jdebacker/ext_grow
jdebacker Jul 23, 2024
d48cec2
Fix CDCC phase-out calculations
martinholmer Jul 24, 2024
294bdaf
Make RECID be first dump output variable
martinholmer Jul 24, 2024
10b3ab2
Fix test_output_options in test_taxcalcio.py module
martinholmer Jul 24, 2024
7dcb14b
Generalize putting RECID at beginning of dump output variable list
martinholmer Jul 24, 2024
4e167ba
Revert change in test_taxcalcio.py module
martinholmer Jul 24, 2024
f272eee
Revise test to include RECID in dump output variable list
martinholmer Jul 24, 2024
1d21162
Merge pull request #2779 from martinholmer/fix-cdcc
martinholmer Jul 24, 2024
9443ad5
Change policy parameters and calculation logic
martinholmer Jul 25, 2024
3ff892e
Revise tests to pass with new CARES nonitemizer charity deduction logic
martinholmer Jul 25, 2024
6d2fdcd
Rename charity deduction crt parameter
martinholmer Jul 25, 2024
f255488
Use renamed charity parameter in reforms
martinholmer Jul 25, 2024
2cc9541
Use renamed charity parameter in extend_tcja.py script
martinholmer Jul 25, 2024
51f3cb9
Minor updates to expected test results
martinholmer Jul 25, 2024
b41af53
Merge pull request #2781 from martinholmer/fix-cares-charity-deduction
jdebacker Jul 26, 2024
a499d97
Fix 2020 PT_rt? values and update CPS and PUF expected test results
martinholmer Jul 26, 2024
e1ae42c
Correct mistaken specification in reforms/TCJA.json file
martinholmer Jul 26, 2024
6f9d8f4
Fix typo in records_variables.json description
martinholmer Jul 26, 2024
0b775e5
Merge pull request #2783 from martinholmer/fix-2020-PT_rt-params
jdebacker Jul 27, 2024
a5a54de
Correct AMT taxable income calculation to handle QBID correctly.
martinholmer Jul 27, 2024
beefe6a
Update expected test results given fix to AMT calculations
martinholmer Jul 27, 2024
57b5e18
Simplify QBID threshold gap parameter in policy_current_law.json
martinholmer Jul 27, 2024
b918948
Incorrect change in QBI calculation
martinholmer Jul 28, 2024
5621d50
Minor changes in expected test results given QBI fix
martinholmer Jul 28, 2024
d36d8db
Merge pull request #2784 from martinholmer/fix-amt-wrt-qbid
jdebacker Jul 28, 2024
fb0c3c0
Merge pull request #2785 from martinholmer/fix-qbi-calc
jdebacker Jul 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion docs/about/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,41 @@ Release history
Go [here](https://github.com/PSLmodels/Tax-Calculator/pulls?q=is%3Apr+is%3Aclosed)
for a complete commit history.


2024-07-21 Release 4.2.0
------------------------
(last merged pull request is
[#2774](https://github.com/PSLmodels/Tax-Calculator/pull/2774))

**This is an enhancement release.**

**API Changes**

**New Features**
- Add final Phase3 version of tmd input files [[#2774](https://github.com/PSLmodels/Tax-Calculator/pull/2774) by Martin Holmer]
- Update the `thru74` branch to include final Phase3 tmd input files [[#2755](https://github.com/PSLmodels/Tax-Calculator/pull/2755) by Martin Holmer]


2024-07-11 Release 4.1.0
------------------------
(last merged pull request is
[#2772](https://github.com/PSLmodels/Tax-Calculator/pull/2772))

**This is an enhancement and bug-fix release.**

**API Changes**

**New Features**
- Add ability to use from the Python API custom growfactors files [[#2757](https://github.com/PSLmodels/Tax-Calculator/pull/2757) and [#2771](https://github.com/PSLmodels/Tax-Calculator/pull/2771) by Martin Holmer]
- Add `tmd_growfactors.csv` file for use with the tmd.csv input file [[#2758](https://github.com/PSLmodels/Tax-Calculator/pull/2758) by Martin Holmer]
- Add ability to run Tax-Calculator under Python 3.12 [[#2763](https://github.com/PSLmodels/Tax-Calculator/pull/2763) by Martin Holmer]
- Add `ctc_total` and `ctc_refundable` output variables [[#2765](https://github.com/PSLmodels/Tax-Calculator/pull/2765) and [#2766](https://github.com/PSLmodels/Tax-Calculator/pull/2766) by Martin Holmer]
- Add exact calculation logic to the `CTC_new` function [[#2769](https://github.com/PSLmodels/Tax-Calculator/pull/2769) by Martin Holmer]

**Bug Fixes**
- Fix 2018 and 2021 EITC phase-out start parameter values [[#2768](https://github.com/PSLmodels/Tax-Calculator/pull/2768) and [#2770](https://github.com/PSLmodels/Tax-Calculator/pull/2770) by Martin Holmer]


2024-06-01 Release 4.0.0
------------------------
(last merged pull request is
Expand All @@ -28,7 +63,7 @@ for a complete commit history.
**API Changes**

**New Features**
- Adds capabilites to handle `tmd*` files from the tax-microdata repository [[#2740](https://github.com/PSLmodels/Tax-Calculator/pull/2740) by Martin Holmer]
- Add capabilites to handle `tmd*` files from the tax-microdata repository [[#2740](https://github.com/PSLmodels/Tax-Calculator/pull/2740) by Martin Holmer]
- Minor updates to documentation, testing, and environment by Martin Holmer and Jason DeBacker in various PRs

2024-04-04 Release 3.5.3
Expand Down
8 changes: 4 additions & 4 deletions docs/contributing/RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Create new `taxcalc` packages
===========================
```

--> on branch X-Y-Z, edit RELEASES.md to finalize X.Y.Z info
--> on branch X-Y-Z, edit docs/about/releases.md to finalize X.Y.Z info

--> specify release X.Y.Z in setup.py and taxcalc/__init__.py

Expand All @@ -19,11 +19,11 @@ Create new `taxcalc` packages

--> run `make package` [to make local taxcalc package available]

--> cd taxcalc/validation ; ./tests.sh ; .fix. ; cd ../..
--> cd taxcalc/validation ; ./tests_35.sh ; .fix. ; cd ../..

--> specify release X.Y.Z in index.md
--> specify release X.Y.Z in docs/index.md

--> cd .. ; make clean [to remove taxcalc package]
--> make clean [to remove taxcalc package]

--> commit X-Y-Z branch and push to origin

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The cross-model validation work with NBER's TAXSIM-27 model is described

## Latest release

{doc}`4.0.0 (2024-06-01) <about/releases>`
{doc}`4.2.0 (2024-07-21) <about/releases>`

If you are already using Tax-Calculator, upgrade using the following command:

Expand Down
10 changes: 9 additions & 1 deletion docs/usage/tcja_after_2025.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ expire). Compatible input datasets include:
data, and are available only to those with access to the 2015
IRS/SOI PUF

Note that if you are using the Python API to Tax-Calculator (as
described in the
[Recipes](https://taxcalc.pslmodels.org/recipes/index.html)) to
analyze the TCJA after 2025 and need to specify custom GrowFactors
after 2025, you can use the old additive-differences `growdiffs`
approach or you can specify a custom `growfactors` file as described
[here](https://github.com/PSLmodels/Tax-Calculator/pull/2757#issuecomment-2218662804).

Before reading the rest of this document, be sure you understand how
to use the Tax-Calculator command-line tool
[tc](https://taxcalc.pslmodels.org/guide/cli.html), particularly the
Expand Down Expand Up @@ -125,7 +133,7 @@ changes or whenever new historical values of policy parameters are
added to the `policy_current_law.json` file thereby changing the
`Policy.LAST_KNOWN_YEAR`.

The 3.5.3 version of Tax-Calculator incorporates the February 2024 CBO
The 4.0.0 version of Tax-Calculator incorporates the February 2024 CBO
economic projection and contains historical tax policy parameter values
through 2022. Future versions of Tax-Calculator that use historical
policy parameter values for 2023 and 2024 or use the February 2025 CBO
Expand Down
2 changes: 1 addition & 1 deletion extend_tcja.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"STD": {"indexed": True, "category": 4},
# category 5 ...
"ID_AllTaxes_c": {"indexed": False, "category": 5},
"ID_Charity_crt_all": {"indexed": False, "category": 5},
"ID_Charity_crt_cash": {"indexed": False, "category": 5},
"ID_Casualty_hc": {"indexed": False, "category": 5},
"ID_Miscellaneous_hc": {"indexed": False, "category": 5},
"ID_ps": {"indexed": True, "category": 5},
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
with open("README.md") as f:
longdesc = f.read()

version = "4.0.0"
version = "4.2.0"

config = {
"description": "Tax Calculator",
Expand Down
11 changes: 2 additions & 9 deletions taxcalc.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: taxcalc
Version: 4.0.0
Version: 4.2.0
Summary: taxcalc
Home-page: https://github.com/PSLmodels/Tax-Calculator
Download-URL: https://github.com/PSLmodels/Tax-Calculator
Expand All @@ -19,18 +19,11 @@ Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: setuptools
Requires-Dist: numpy
Requires-Dist: pandas
Requires-Dist: bokeh
Requires-Dist: numba
Requires-Dist: requests
Requires-Dist: paramtools

| | |
| --- | --- |
| Org | [![PSL cataloged](https://img.shields.io/badge/PSL-cataloged-a0a0a0.svg)](https://www.PSLmodels.org) [![OS License: CCO-1.0](https://img.shields.io/badge/OS%20License-CCO%201.0-yellow)](https://github.com/PSLmodels/Tax-Calculator/blob/master/LICENSE) [![Jupyter Book Badge](https://jupyterbook.org/badge.svg)](https://pslmodels.github.io/Tax-Calculator/) |
| Package | [![Python 3.9](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/downloads/release/python-3916/) [![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-3108/) [![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3118/) [![PyPI Latest Release](https://img.shields.io/pypi/v/taxcalc.svg)](https://pypi.org/project/taxcalc/) [![PyPI Downloads](https://img.shields.io/pypi/dm/taxcalc.svg?label=PyPI%20downloads)](https://pypi.org/project/taxcalc/) [![Anaconda](https://img.shields.io/conda/dn/conda-forge/taxcalc?color=brightgreen&label=downloads&logo=conda-forge)](https://anaconda.org/conda-forge/taxcalc)|
| Package | [![Python 3.9](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/downloads/release/python-3916/) [![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-3108/) [![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3118/) [![Python 3.12](https://img.shields.io/badge/python-3.12-blue.svg)](https://www.python.org/downloads/release/python-3121/) [![PyPI Latest Release](https://img.shields.io/pypi/v/taxcalc.svg)](https://pypi.org/project/taxcalc/) [![PyPI Downloads](https://img.shields.io/pypi/dm/taxcalc.svg?label=PyPI%20downloads)](https://pypi.org/project/taxcalc/) [![Anaconda](https://img.shields.io/conda/dn/conda-forge/taxcalc?color=brightgreen&label=downloads&logo=conda-forge)](https://anaconda.org/conda-forge/taxcalc)|
| Testing | ![example event parameter](https://github.com/PSLmodels/Tax-Calculator/actions/workflows/build_and_test.yml/badge.svg?branch=master) ![example event parameter](https://github.com/PSLmodels/Tax-Calculator/actions/workflows/deploy_jupyterbook.yml/badge.svg?branch=master) [![Codecov](https://codecov.io/gh/PSLmodels/Tax-Calculator/branch/master/graph/badge.svg)](https://codecov.io/gh/PSLmodels/Tax-Calculator) |


Expand Down
2 changes: 1 addition & 1 deletion taxcalc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
from taxcalc.utils import *
from taxcalc.cli import *

__version__ = '4.0.0'
__version__ = '4.2.0'
Loading
Loading