PSLmodels / Cost-of-Capital-Calculator

A cost of capital and effective tax rate calculator
https://ccc.pslmodels.org
Other
17 stars 33 forks source link

Allow for more flexibility in individual income tax micro data input #391

Closed jdebacker closed 5 months ago

jdebacker commented 6 months ago

This PR update get_taxcalc_rates.py to allow for more flexibility in the micro data file used by allowing for grow factors, weights, and start years to be passed as arguments.

codecov-commenter commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (e825006) to head (e3d4d90).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/391/graphs/tree.svg?width=650&height=150&src=pr&token=vOrtCdGu1c&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels)](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/391?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels) ```diff @@ Coverage Diff @@ ## master #391 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 11 11 Lines 1143 1140 -3 ========================================= - Hits 1143 1140 -3 ``` | [Flag](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/391/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/391/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels) | `100.00% <100.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/391?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels) | Coverage Δ | | |---|---|---| | [ccc/\_\_init\_\_.py](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/391?src=pr&el=tree&filepath=ccc%2F__init__.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels#diff-Y2NjL19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | | | [ccc/get\_taxcalc\_rates.py](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/391?src=pr&el=tree&filepath=ccc%2Fget_taxcalc_rates.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels#diff-Y2NjL2dldF90YXhjYWxjX3JhdGVzLnB5) | `100.00% <100.00%> (ø)` | | | [ccc/parameters.py](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/391?src=pr&el=tree&filepath=ccc%2Fparameters.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels#diff-Y2NjL3BhcmFtZXRlcnMucHk=) | `100.00% <100.00%> (ø)` | |