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

Simplify constructor of classes that inherit from the Parameters class #2103

Merged
merged 4 commits into from
Nov 8, 2018
Merged

Simplify constructor of classes that inherit from the Parameters class #2103

merged 4 commits into from
Nov 8, 2018

Conversation

martinholmer
Copy link
Collaborator

@martinholmer martinholmer commented Nov 5, 2018

This pull request simplifies the creation of objects for Parameters-based classes (Policy, Consumption, and GrowDiff) by removing the start_year and num_years arguments. These changes do not affect the standard use of the these Tax-Calculator classes, but do reduce the chance that the constructors will be misused.

@codecov-io
Copy link

codecov-io commented Nov 5, 2018

Codecov Report

Merging #2103 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2103      +/-   ##
==========================================
- Coverage   99.91%   99.91%   -0.01%     
==========================================
  Files          16       16              
  Lines        3523     3494      -29     
==========================================
- Hits         3520     3491      -29     
  Misses          3        3
Impacted Files Coverage Δ
taxcalc/calculator.py 100% <100%> (ø) ⬆️
taxcalc/growdiff.py 100% <100%> (ø) ⬆️
taxcalc/parameters.py 100% <100%> (ø) ⬆️
taxcalc/consumption.py 100% <100%> (ø) ⬆️
taxcalc/policy.py 100% <100%> (ø) ⬆️

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 1f327f0...ca9df45. Read the comment docs.

@martinholmer martinholmer merged commit 5900592 into PSLmodels:master Nov 8, 2018
@martinholmer martinholmer deleted the simplify-policy-ctor branch November 8, 2018 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants