-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Refactor dropq functions #1314
Refactor dropq functions #1314
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1314 +/- ##
==========================================
- Coverage 99.65% 99.64% -0.02%
==========================================
Files 38 38
Lines 2890 2800 -90
==========================================
- Hits 2880 2790 -90
Misses 10 10
Continue to review full report at Codecov.
|
Are there any comments on Tax-Calculator pull request #1314? @MattHJensen @feenberg @Amy-Xu @andersonfrailey @GoFroggyRun @codykallen @zrisher |
Commit fc06a73 in pull request #1314 removes the The @MattHJensen @feenberg @Amy-Xu @andersonfrailey @GoFroggyRun @codykallen @zrisher |
This pull request implements the proposal discussed in deploy repo issue 45.
The refactoring of the dropq code involves moving all functions that are not "exported" in the
taxcalc/dropq/__init__.py
file fromdropq.py
todrop_utils.py
. Another main objective of the refactoring is to eliminate the code duplication in the tworun_nth_year_*_model
functions. And finally, a number of obsolete functions and tests were removed and some new tests were added.There has been just one change in the public dropq API. The "exported" function formerly named
run_nth_year_model
has been renamedrun_nth_year_tax_calc_model
. This makes it clear which model is being run and make the function name analogous to therun_nth_year_gdp_elast_model
function.While these changes should be tested in TaxBrain, it would appear that the refactoring has left the functionality of dropq unchanged. When you force a test failure at the end of the final
test_with_pufcsv
test in thetest_dropq.py
file, you get the following output:The seed value and the post-reform combined tax revenues without and with dropq are exactly the same as they are on the master branch.
@MattHJensen @feenberg @Amy-Xu @andersonfrailey @GoFroggyRun @codykallen @zrisher
@PeterDSteinberg @brittainhard