-
-
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
[Question] How does the round trip test work? #2542
Comments
The way I've thought about this test is that For your three parameter examples, As for the code snippet in Hope that helps. |
Thanks for the reply @Peter-Metz.
Wait, I was referring to the use of the
Ok, this makes sense to me. I think I'm remembering you telling me this in the past. I'm still hung up on this:
This makes me think that the test should only check parameter values that are in the I also didn't write this test so I'm a little hesitant to update it. My main motivation is to remove the update logic that re-instates the current law parameters prior to Tax-Calculator/taxcalc/parameters.py Lines 370 to 391 in 9c8be55
|
@hdoupe Can this issue be closed? |
@jdebacker I'm still pretty confused about this test, but happy to re-open the issue or discuss elsewhere when I come back around to it. |
My understanding of this test is similar to what Peter's saying: It tests that if you revert to 2017 law, then layer on each change since 2017, you should get back to the current, current law baseline. But I do not understand the snipped in @hdoupe writes:
I need help understanding this. Is this an issue with indexed parameters generally (whose indexing changed with the TCJA)? |
@hdoupe I think the parameters that are not changed in E.g.,
Full list of parameters @hdoupe has found present in
In short, I think any discrepancy between the TCJA and 2017 law files can be explained by (1) unnecessary parameter adjustments in the |
I'm trying to understand the
test_round_trip_tcja_reform
test:Tax-Calculator/taxcalc/tests/test_reforms.py
Lines 93 to 104 in 9c8be55
My understanding is that it:
2017_law.json
TCJA.json
policy_current_law.json
)My question is: Why are some parameters changed in
2017_law.json
, but not inTCJA.json
? For example,EITC_ps_MarriedJ
is changed in2017_law.json
, butEITC_ps_MarriedJ
is not included inTCJA.json
. So, how it could it get back to its current law value if the value is updated via the2017_law.json
file but isn't changed again by theTCJA.json
file?There are a couple other parameters like this such as
II_em_ps
andEITC_c
.There's a hack in the parameters code that exists specifically to get this one test to pass and I'm trying to figure out if I can remove it:
Tax-Calculator/taxcalc/parameters.py
Lines 314 to 324 in 9c8be55
The text was updated successfully, but these errors were encountered: