-
-
Notifications
You must be signed in to change notification settings - Fork 122
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 mortality rates time varying #871
Conversation
TPI.py, SS.py and parameter_plots.py have been updated
The following code was not meant to be uploaded.(continuedclass.py,Classobjects.py,compounding.py,methods.py and PS1-2.py)
@harisjoshi Your latest changes look great! I think the next step is to update parameters.py. I will follow up with details about that. |
@harisjoshi I just opened a PR to this branch of yours here. If you merge that in the changes will be reflected on your branch and in this PR. With that, I think we'll have completed what we need for this addition to OG-Core! |
Reshaping input rho
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #871 +/- ##
==========================================
- Coverage 79.93% 79.89% -0.04%
==========================================
Files 18 18
Lines 4146 4183 +37
==========================================
+ Hits 3314 3342 +28
- Misses 832 841 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@Harijoshi This is very close. It looks like all units tests are passing (which I also confirmed on my local machine), but we need to update the formatting to be consistent with the rest of this project. Can you, in your terminal, navigate to the After that you can use @rickecon Can you review this PR? I've worked with @harisjoshi on this and it looks good to me (and ready to merge after the formatting changes are made). |
@harisjoshi Thanks for updating the formatting, unfortunately the PR with the updated formatting lost the changes merged in from my PR. I think what you need to do is a Once merged, run Black on more time: Then add and commit the changed and push here. If you want, I can try to find some time to jump on a Zoom with you Tuesday afternoon/evening or Wednesday afternoon to walk through this with you. |
@jdebacker I will try to bring down the remote changes from my branch from the PR over the weekend. |
@jdebacker @harisjoshi . I am trying to pull this branch from @harisjoshi to test it out on my machine, and it is telling me that I have divergent branches. I have updated my
I get the following error, which usually means that the PR branch has not incorporated whatever are the current changes in the master repo branch.
|
@rickecon Thanks for noticing this. @harisjoshi Can you do a |
@jdebacker @harisjoshi. I went ahead and just
I looked at the changed files from this PR on my machine in my new branch |
@jdebacker @harisjoshi. Here are some suggestions and questions about this PR. First let me state my understanding of what it does. It allows the age-specific mortality rates to also vary over time, making the
|
@jdebacker @harisjoshi. Everything ran great in |
@rickecon -- thanks for your review! Let me respond to each item.
That's right. Although I'll note that the object is turned into 2 dimensional NumPy array upload loading into the
Good call. This should be updated here for consistency (although we'll make changes to this in the future - see following responses). @harisjoshi Can you make the required change to the
Yes, this will have to be done in subsequent PRs in those country calibration repositories.
100% agree with this. It's only used to create the population distribution in the case of |
@jdebacker and @harisjoshi. I think this is harder than you think. I don't think you can just update I started doing this in @harisjoshi 's branch and was going to submit a PR to him. But I kept running into errors in the testing suite due to stuff saved in |
Yes, this PR will break all the country calibrations as there will need to be updates in those country's
Does this sounds like a reasonable plan? |
@jdebacker. Your plan above sounds great. @harisjoshi. Thanks for this PR. I am merging it now. |
This pull request is going to update OG core to make time-varying mortality rates.