-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Fix tax function indexing #878
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #878 +/- ##
==========================================
+ Coverage 79.93% 79.98% +0.05%
==========================================
Files 18 18
Lines 4146 4157 +11
==========================================
+ Hits 3314 3325 +11
Misses 832 832
Flags with carried forward coverage won't be shown. Click here to find out more.
|
All unit tests are passing and I've run the example script successfully my my machine. There is some issue building miniconda in the "Check that docs build" workflow. It continues to time out, even after re-running this job 3 times. I do not know the issue since the same actions are used to build miniconda here as are used in the successful unit test actions. If @rickecon doesn't have a quick solution, I would say go ahead and merge this PR. It is otherwise ready to go. |
@jdebacker. All tests have passed except for |
@jdebacker. We'll see how this goes. I am worried that we will run out of compute time with 9 |
@jdebacker. It looks like Python 3.11 is resulting in some
|
@jdebacker. The good news is that it ran really fast. |
@rickecon writes:
Yes, if you save a pickle file in an earlier version of Python (or relevant packages that the pickled objects are from), it's difficult to open in a later version, as far as I know. We've run into this before. Since I don't want to save all pickle files again right now, I've just removed 3.11 from the test matrix. |
Thanks @jdebacker. Looks great. Merging. |
Oops. @jdebacker. We just need to update the version number in |
This PR fixes two cases of tax function parameters not being indexed (or sized) correctly.
The first is a change to
parameters.py
to make sure tax functions that are input are extrapolated to the appropriate model dimensions. This addresses Issue #877.Second is a changes to the plotting of 2D tax functions in
parameter_plots.py
. This function had not been updated (or not correctly updated) to notes that the dimensions of the lists of lists of tax functions parameters are TxS. The change here is to make sure time period index is given before the age index.