-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Make last budget year flexible #2846
Conversation
@martinholmer writes
Can you tell me what's not in sync? They look good to me and the |
@jdebacker asked:
As I said in this comment:
And there are similar inconsistencies between the treatment of |
@martinholmer Except for ParamTools, we've not been specifying pins of the packages in |
@jdebacker said:
This explanation is not convincing. First, let's delve into what exact are "current taxcalc conventions". The ![]() Second, in Sep 2024 PR #2799 added a minimum required version number to just ![]() So, we see that "current taxcalc conventions" date back to changes made only a few months ago. After this review of
the change should be:
|
@martinholmer Thanks for noting the lack of documentation in some changes to After reading some best practices, I think we should use the same version pins in Does this sound good to you? Anything to add? Once we agree, I can add those changes to this PR. |
@jdebacker said:
OK. This sounds sensible. And this approach makes the treatment of |
@jdebacker, PR #2846 does not revise the static method Changes suggested below need to revised somewhat given new You need to make changes along the lines suggested below:
|
@jdebacker, I'll resume my review of PR #2846 after you make the changes mentioned in the following two comments: |
Using PR #2846 after commit 71b228e, my testing of the Python Tax-Calculator API suggests that the new flexible LAST_BUDGET_YEAR logic is working (details below), but that the Command-Line API does not incorporate the new logic. Here is what I did after running
Reviewing the proposed PR #2846 code changes, it seems as if the CLI code in |
@martinholmer Thanks for finding this omission. I'm not a taxcalc CLI user, but I will make the necessary changes there. |
@jdebacker, The new flexible LAST_BUDGET_YEAR logic is sufficiently complicated that I think it should have a test. I suggest you add the following test at the bottom of the
|
@jdebacker, No need to do "add budget year end to command line args" in commit 2593f2b Just use the existing |
@jdebacker, Note sure why you're adding the
|
Closing in favor or @martinholmer's PR #2856 |
This PR uses the new ParamTools package (0.19.0) to update the max year in the default parameter JSON files so that users can define their preferred last budget year. The default remains a 10 year budget window, but with certain data files (e.g., the TMD file) the user may wish to extend the budget window further.