Strengthen test_sub_effect_independence#41
Strengthen test_sub_effect_independence#41martinholmer wants to merge 1 commit intoPSLmodels:masterfrom martinholmer:strengthen-test_sub_effect_independence
Conversation
|
@martinholmer, thanks for identifying this. I'll think about how to fine tune the changes from #37. |
|
@MattHJensen said in B-R PR #41:
Isn't it just a matter of the $3000 limit on the amount of long-term capital losses that can be included in AGI? |
|
That’s the first thing I’m going to try, but I’m worried the convolution of short and long term capital gains when the loss limitation is implemented might complicate things.
|
|
@martinholmer, thanks for identifying this problem with #37. I have resolved the test failure on my branch: https://github.com/MattHJensen/Behavioral-Responses/tree/martinholmer-strengthen-test_sub_effect_independence. Would you prefer that I open a PR to martinholmer:strengthen-test_sub_effect_independence for inclusion in this PR, or open a new PR to PSLmodels:master? |
|
@MattHJensen said:
A new PSLmodels/Behavioral-Responses pull request makes more sense to me. |
|
This strengthening of the independence test is now incorporated in pull request #44. |
@MattHJensen, Maybe I don't understand the goal of pull request #37, but it seems to me the code changes in that pull request don't fully achieve the goal. The problem is when a filing unit has nontrivial long-term capital losses. Look at the changes I made in this PR to the
test_sub_effect_independencetest, which cause the test to fail because of a lack of independence. Am I confused about this? Or do the changes in PR #37 need to be fine-tuned?