Skip to content
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

add subpopulation to LatentInfectionProcess #282

Conversation

sbidari
Copy link
Collaborator

@sbidari sbidari commented Jan 7, 2025

see #281

Adds subpopulation hierarchical dynamics to the LatentInfectionProcess class and corresponding tests.
Also includes some clean-up and variable name changes in the ww_site_level_dynamics_model model.

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

Attention: Patch coverage is 46.77419% with 33 lines in your changes missing coverage. Please review.

Project coverage is 20.67%. Comparing base (a70e296) to head (8679b46).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pyrenew_hew/pyrenew_hew_model.py 60.41% 19 Missing ⚠️
pyrenew_hew/ww_site_level_dynamics_model.py 0.00% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #282      +/-   ##
==========================================
+ Coverage   15.87%   20.67%   +4.79%     
==========================================
  Files          21       21              
  Lines        1537     1572      +35     
==========================================
+ Hits          244      325      +81     
+ Misses       1293     1247      -46     
Flag Coverage Δ
hewr 47.68% <ø> (ø)
pipelines 0.00% <ø> (ø)
pyrenew_hew 19.25% <46.77%> (+17.59%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sbidari sbidari marked this pull request as ready for review January 13, 2025 14:54
Copy link
Contributor

@dylanhmorris dylanhmorris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good, thanks @sbidari! A few minor questions/comments before approval

pyrenew_hew/pyrenew_hew_model.py Outdated Show resolved Hide resolved
pyrenew_hew/pyrenew_hew_model.py Outdated Show resolved Hide resolved
pyrenew_hew/pyrenew_hew_model.py Outdated Show resolved Hide resolved
pyrenew_hew/pyrenew_hew_model.py Outdated Show resolved Hide resolved
pyrenew_hew/pyrenew_hew_model.py Outdated Show resolved Hide resolved
pyrenew_hew/pyrenew_hew_model.py Outdated Show resolved Hide resolved
pyrenew_hew/pyrenew_hew_model.py Outdated Show resolved Hide resolved
pyrenew_hew/pyrenew_hew_model.py Outdated Show resolved Hide resolved
pyrenew_hew/pyrenew_hew_model.py Outdated Show resolved Hide resolved
tests/test_LatentInfectionProcess.py Show resolved Hide resolved
@sbidari
Copy link
Collaborator Author

sbidari commented Jan 14, 2025

I think changes from some other PR is causing the pipeline test and pre-commit to fail, but I have addressed the initial review comments.

…ynamics_modelpy-to-latentinfectiondynamics-class-in-pyrenew_hew_modelpy
@sbidari sbidari requested a review from dylanhmorris January 15, 2025 20:58
@dylanhmorris
Copy link
Contributor

Thanks, @sbidari!

@dylanhmorris dylanhmorris merged commit bc76d59 into main Jan 17, 2025
16 checks passed
@dylanhmorris dylanhmorris deleted the 281-add-subpopulations-as-in-ww_site_level_dynamics_modelpy-to-latentinfectiondynamics-class-in-pyrenew_hew_modelpy branch January 17, 2025 19:18
damonbayer added a commit that referenced this pull request Jan 22, 2025
commit 724d09b
Author: Dylan H. Morris <[email protected]>
Date:   Sat Jan 18 17:31:57 2025 +0000

    Add helper data `PyrenewHEWData` class to hold input data to `PyrenewHewModel`s (#283)

commit bc76d59
Author: Subekshya Bidari <[email protected]>
Date:   Fri Jan 17 14:18:11 2025 -0500

    add subpopulation to LatentInfectionProcess (#282)

commit a70e296
Author: Subekshya Bidari <[email protected]>
Date:   Wed Jan 15 15:29:44 2025 -0500

    add setup-r (#295)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants