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

Set state for all parameters #1

Merged
merged 1 commit into from
Jan 5, 2021

Conversation

hdoupe
Copy link

@hdoupe hdoupe commented Jan 5, 2021

This fixes the failing test, but I'm not 100% sure why this is causing a problem with ParamTools 0.16.1. I'll continue looking into this.

A bunch of smaller updates are done while doing the main parameter value update. The operators for converting parameter values to NumPy arrays and then extending them throughout the budget window are turned off so that we aren't doing extra work after each of these smaller updates.

https://github.com/PSLmodels/Tax-Calculator/blob/565158d4385901be0ef5c5f9332a5e567587e9e5/taxcalc/parameters.py#L190-L194

https://github.com/PSLmodels/Tax-Calculator/blob/565158d4385901be0ef5c5f9332a5e567587e9e5/taxcalc/parameters.py#L334

Then once they are done, the operators are turned back on and the parameters that need to be converted to NumPy arrays or extended through the budget window are updated.

https://github.com/PSLmodels/Tax-Calculator/blob/565158d4385901be0ef5c5f9332a5e567587e9e5/taxcalc/parameters.py#L424-L437

However, it seems like a lot of the parameter values (including UBI_ecrt) were not converted to NumPy arrays. If I just reset the values for all parameters, then the test passes. I'm going to do some more digging to figure out why 0.16.0 is causing this behavior. In the meantime, this should get all unit tests passing again.

@jdebacker @Peter-Metz

@jdebacker jdebacker merged commit 327459e into jdebacker:pandas_update Jan 5, 2021
@jdebacker
Copy link
Owner

Thanks for this fix @hdoupe.

@hdoupe hdoupe deleted the pandas_update branch January 5, 2021 14:28
jdebacker pushed a commit that referenced this pull request May 21, 2021
Update PUF expected results
jdebacker pushed a commit that referenced this pull request Mar 2, 2022
Update round trip reform tests
jdebacker pushed a commit that referenced this pull request Jan 19, 2023
jdebacker pushed a commit that referenced this pull request Apr 15, 2024
Update build_and_test.yml
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