Skip to content

Conversation

@nikhilwoodruff
Copy link
Collaborator

Adds the functionality and variables of GainsTax. This required converting a multi-output formula into (the minimum number of) single-output variables.

@nikhilwoodruff nikhilwoodruff linked an issue Nov 28, 2021 that may be closed by this pull request
@nikhilwoodruff nikhilwoodruff self-assigned this Nov 29, 2021
@codecov
Copy link

codecov bot commented Dec 7, 2021

Codecov Report

Merging #342 (0190141) into master (a56874a) will increase coverage by 0.20%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #342      +/-   ##
==========================================
+ Coverage   94.67%   94.87%   +0.20%     
==========================================
  Files          59       59              
  Lines        3510     3652     +142     
  Branches      473      480       +7     
==========================================
+ Hits         3323     3465     +142     
  Misses        162      162              
  Partials       25       25              
Impacted Files Coverage Δ
openfisca_us/variables/irs/inputs.py 99.64% <100.00%> (+<0.01%) ⬆️
openfisca_us/variables/irs/intermediate.py 89.22% <100.00%> (+0.61%) ⬆️
openfisca_us/variables/irs/outputs.py 97.94% <100.00%> (+0.28%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a5bb574...0190141. Read the comment docs.

@nikhilwoodruff
Copy link
Collaborator Author

@MaxGhenis seems like at some point between the tests of the AMT PR and the AMT PR merge, something changed in the coverage action. Fixed by adding the -i option as per S.O.

definition_period = YEAR

def formula(tax_unit, period, parameters):
# Negatives cannot offset other income sources
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a unit test for this?

@nikhilwoodruff nikhilwoodruff merged commit 39a24df into master Dec 28, 2021
@MaxGhenis MaxGhenis deleted the gains-tax branch January 30, 2022 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add GainsTax

3 participants