-
Notifications
You must be signed in to change notification settings - Fork 3
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
plotting functions for coverage and survival #31
Conversation
davidsantiagoquevedo
commented
Sep 29, 2023
- Functions to plot survival
- Functions to calculate and plot vaccine coverages
- Current coverage: 60%
Thanks @davidsantiagoquevedo - I'll take a look at this next week and get back to you by Weds? Meanwhile perhaps you could already fix the linting. |
Hi @pratikunterwegs. Thanks! By Wednesday is perfect. I'll check the lining. We also have today a collaborative session at PUJ for the test coverage. Currently 60% |
Thanks - I'm taking a look now, and I can take another look tomorrow in case you've added more tests for the plots. Snapshot tests should do the trick. |
chore: create page from dev branch
Hello @pratikunterwegs, we fixed the errors on the checks generated by the tests. Could you please take a look at this PR when you have time? |
Hi @davidsantiagoquevedo sure, I could take a look by the end of the week if that's alright? |
Hello @pratikunterwegs . Yes, by the end of the week is fine. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice stuff @davidsantiagoquevedo - looks good to me overall. I had only a few comments which I've made on the code.
One recommendation though would be to refactor plot_coverage()
--- this function wraps coh_coverage()
. I would instead let the two be chain-able, so that the output of coh_coverage()
can be passed to plot_coverage()
. You would need to add some input checks on data
to ensure it has the expected columns.
coh_coverage(<ARGS>) |> plot_coverage()
This reduces the nestedness of the code overall, and if there are other methods (i.e., study methods) from which coverage can be calculated, these could also be handled by plot_coverage()
in future.
some_method_coverage(<ARGS>) |> plot_coverage()
Co-authored-by: Pratik Gupte <[email protected]>
Co-authored-by: Pratik Gupte <[email protected]>
Co-authored-by: Pratik Gupte <[email protected]>