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

wastewater observation process #310

Conversation

sbidari
Copy link
Collaborator

@sbidari sbidari commented Jan 23, 2025

This PR adds code for the wastewater observation process in pyrenew_hew_model.py.
It does not add wastewater data to pyrenew_hew_data.py.

@sbidari sbidari linked an issue Jan 23, 2025 that may be closed by this pull request
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 10.14493% with 62 lines in your changes missing coverage. Please review.

Project coverage is 23.94%. Comparing base (df3648d) to head (7f1eb62).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pyrenew_hew/pyrenew_hew_model.py 12.96% 47 Missing ⚠️
pyrenew_hew/ww_site_level_dynamics_model.py 0.00% 14 Missing ⚠️
pipelines/build_pyrenew_model.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #310      +/-   ##
==========================================
- Coverage   24.72%   23.94%   -0.79%     
==========================================
  Files          22       21       -1     
  Lines        1638     1679      +41     
==========================================
- Hits          405      402       -3     
- Misses       1233     1277      +44     
Flag Coverage Δ
hewr 49.61% <ø> (ø)
pipelines 0.00% <0.00%> (ø)
pyrenew_hew 27.96% <10.29%> (-3.01%) ⬇️

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 27, 2025 14:40
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.

A few comments/questions/suggestions, all fairly minor. Thanks, @sbidari!

pyrenew_hew/pyrenew_hew_model.py Outdated Show resolved Hide resolved
pyrenew_hew/pyrenew_hew_model.py Outdated Show resolved Hide resolved
pyrenew_hew/utils.py Outdated Show resolved Hide resolved
pyrenew_hew/ww_site_level_dynamics_model.py Show resolved Hide resolved
pyrenew_hew/ww_site_level_dynamics_model.py Outdated Show resolved Hide resolved
pyrenew_hew/pyrenew_hew_model.py Outdated Show resolved Hide resolved
pyrenew_hew/pyrenew_hew_model.py 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
@sbidari sbidari requested a review from dylanhmorris January 28, 2025 20:26
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.

A few remaining minor comments. Thanks, @sbidari!

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
sbidari and others added 3 commits January 29, 2025 09:44
…w_hew_modelpy' of https://github.com/CDCgov/pyrenew-hew into 300-update-wastewaterobservationprocess-class-in-pyrenew_hew_modelpy
@sbidari sbidari requested a review from dylanhmorris January 29, 2025 15:00
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.

LGTM. A few variable naming suggestions to clarify latent versus obs wastewater. You can merge yourself once you've taken or rejected them.

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
@sbidari
Copy link
Collaborator Author

sbidari commented Jan 29, 2025

LGTM. A few variable naming suggestions to clarify latent versus obs wastewater. You can merge yourself once you've taken or rejected them.

Thanks @dylanhmorris. The suggestions seem reasonable, will change these and merge.

@sbidari sbidari merged commit 39c003d into main Jan 29, 2025
13 of 15 checks passed
@sbidari sbidari deleted the 300-update-wastewaterobservationprocess-class-in-pyrenew_hew_modelpy branch January 29, 2025 21:20
damonbayer added a commit that referenced this pull request Jan 29, 2025
commit 39c003d
Author: Subekshya Bidari <[email protected]>
Date:   Wed Jan 29 16:20:53 2025 -0500

    wastewater observation process (#310)

    * add ww obs process

    * pre-commit

    * update build pyrenew model

    * fix output assignment in test latent infection process

    * include some rvs as placeholders

    * change prior

    * use priors from stan model

    * fix typo

    * move data args to sample method

    * pre-commit

    * update prod_priors.py

    * sync

    * update generate_predictive.py

    * pre-commit

    * move model constant to prior as per dhm suggestion

    * make get_viral_trajectory a class method

    * remove outdated call to utils

    * output assignment

    * state -> population

    * code review suggestions

    * code review suggestions

    * update distributional variable sample call

    * Apply suggestions from code review

    Co-authored-by: Dylan H. Morris <[email protected]>

    * pre-commit

    * Apply suggestions from code review

    Co-authored-by: Dylan H. Morris <[email protected]>

    ---------

    Co-authored-by: Dylan H. Morris <[email protected]>

commit df3648d
Author: Dylan H. Morris <[email protected]>
Date:   Tue Jan 28 17:20:34 2025 +0000

    Improvements and bug fixes for epiweekly other hubverse tables and plots (#312)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update WastewaterObservationProcess class in pyrenew_hew_model.py
2 participants