Skip to content

Comments

Deprecate unused classes and corresponding tutorials, revise RandomVariable tutorial#677

Merged
cdc-mitzimorris merged 34 commits intomainfrom
mem_deprecate_classes
Feb 7, 2026
Merged

Deprecate unused classes and corresponding tutorials, revise RandomVariable tutorial#677
cdc-mitzimorris merged 34 commits intomainfrom
mem_deprecate_classes

Conversation

@cdc-mitzimorris
Copy link
Collaborator

Per discussion in issue #645, remove the following unused classes:

  • pyrenew.model.RtInfectionsRenewalModel
  • pyrenew.model.HospitalAdmissionsModel
  • pyrenew.latent.HospitalAdmissions
  • pyrenew.observation.PoissonObservation

Removed corresponding unit tests.

This also requires removing several tutorials as well as changing the Custom Random Variables tutorial. For the latter, I have rewritten it so that it is a general presentation of PyRenew's RandomVariable metaclass. As part of this PR, I have also updated docs/index.md.

@cdc-mitzimorris
Copy link
Collaborator Author

Note, this PR shouldn't be reviewed until PR #650 has landed.

@codecov
Copy link

codecov bot commented Feb 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.46%. Comparing base (27b2964) to head (db657ac).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #677      +/-   ##
==========================================
- Coverage   97.58%   97.46%   -0.12%     
==========================================
  Files          55       51       -4     
  Lines        1697     1540     -157     
==========================================
- Hits         1656     1501     -155     
+ Misses         41       39       -2     
Flag Coverage Δ
unittests 97.46% <ø> (-0.12%) ⬇️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

github-actions bot commented Feb 6, 2026

Thank you for your contribution @cdc-mitzimorris 🚀! Your github-pages is ready for download 👉 here 👈!
(The artifact expires on 2026-02-14T01:00:57Z. You can re-generate it by re-running the workflow here.)

@dylanhmorris
Copy link
Collaborator

@cdc-mitzimorris is this ready for review?

@cdc-mitzimorris
Copy link
Collaborator Author

@dylanhmorris - yes, ready for review.

# Conflicts:
#	docs/tutorials/building_multisignal_models.qmd
Copy link
Collaborator

@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.

Thanks @cdc-mitzimorris. A few minor suggestions. Happy for you to implement as you see fit and then merge without re-review.

cdc-mitzimorris and others added 8 commits February 6, 2026 16:46
Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
Co-authored-by: Dylan H. Morris <dylanhmorris@users.noreply.github.com>
@cdc-mitzimorris cdc-mitzimorris merged commit cf9416f into main Feb 7, 2026
7 of 8 checks passed
@cdc-mitzimorris cdc-mitzimorris deleted the mem_deprecate_classes branch February 7, 2026 01:09
@cdc-mitzimorris cdc-mitzimorris changed the title Deprecate unused classes and corresponding tutorials. Deprecate unused classes and corresponding tutorials, revise RandomVariable tutorial Feb 9, 2026
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.

2 participants