-
Notifications
You must be signed in to change notification settings - Fork 18
135 contact reduction npi local #284
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
Conversation
tools/compute_npi_reduction.py
Outdated
@return Data path of memilio repository. | ||
""" | ||
|
||
data_path = os.getcwd().split('memilio')[0] + 'memilio/data/' |
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.
In #319 it was discussed the problem that the directory does not need to be named memilio.
You mention this problem in the comment but maybe a better solution would be to allow the user to pass an arbitrary directory instead of always calling this function.
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.
I implemented a possibility to include a path.
tools/compute_npi_reduction.py
Outdated
# TODO: We currently don't have age-resolved data for each county. | ||
# Once we have this data, find correct file and adapt extraction to that file format. |
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.
please proceed with get_population_data()
also, you can now use the inter/extrapolation of data to new age groups using #363
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.
I now use the age group transformation and the correct file. Would you prefer to use the download scripts here instead of using the already downloaded file?
Co-authored-by: Martin J. Kühn <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #284 +/- ##
=======================================
Coverage 94.98% 94.98%
=======================================
Files 112 112
Lines 8776 8776
=======================================
Hits 8336 8336
Misses 440 440 ☔ View full report in Codecov by Sentry. |
My comments dated from long ago, I forgot to submit them. I think the script is still useful and important to compute estimated total contact reduction. I am not sure though if it is correct. We would need to look at it again. In the future, one could think of integrating a similar output directly to C++. |
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.
I resolved the comments.
tools/compute_npi_reduction.py
Outdated
@return Data path of memilio repository. | ||
""" | ||
|
||
data_path = os.getcwd().split('memilio')[0] + 'memilio/data/' |
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.
I implemented a possibility to include a path.
tools/compute_npi_reduction.py
Outdated
# TODO: We currently don't have age-resolved data for each county. | ||
# Once we have this data, find correct file and adapt extraction to that file format. |
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.
I now use the age group transformation and the correct file. Would you prefer to use the download scripts here instead of using the already downloaded file?
@HenrZu We should discuss how to continue and output contact reduction for ODE model summary statistics |
Changes
Implements tool to compute NPI reduction for any given county.
What can be improved:
Merge Request - GuideLine Checklist
Guideline to check code before resolve WIP and approval, respectively.
As many checkboxes as possible should be ticked.
Checks by code author:
is present or referenced. Please provide your references.
Checks by code reviewer(s):
closes #135