-
Notifications
You must be signed in to change notification settings - Fork 5
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
[WIP] plot_age_pyramid: add the possibility to have one datetime_ref that differs for each patient #18
Conversation
…iffers for each patient: eg. the date of their inclusion in the study.
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.
Hey, @strayMat thank you for this PR! Below are some comments before merging.
- add a new test for pytest.raise - add a parsable datetime string - add better error messages when bad value or bad type
Co-authored-by: Thomas Petit-Jean <30775613+Thomzoy@users.noreply.github.com>
Looks good! We need to merge #20 before we merge this PR as well. |
Codecov ReportBase: 95.08% // Head: 94.94% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #18 +/- ##
==========================================
- Coverage 95.08% 94.94% -0.14%
==========================================
Files 65 65
Lines 2034 2057 +23
==========================================
+ Hits 1934 1953 +19
- Misses 100 104 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Where are we for this PR ? I am not sure to see what is missing before merging ? |
Close in favor of #43 to avoid nested merging conflicts. |
The previous plot_age_pyramid function only allow for one fixed datetime reference for all persons.
In some case studies , we would like to have a different datetime of reference for each person.
Eg. the date of their inclusion in the study. The objective is to draw the pyramid of ages of patient at inclusion. (Very useful and more pertinent when we have cohorts over a long time period).
Description
Add to plot_age_pyramid the possibility to give the datetime_ref argument as a column name.
Checklist