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

catch case where n_eligible_for_doseX is 0, avoid division by 0 #37

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

edknock
Copy link
Collaborator

@edknock edknock commented Oct 12, 2024

This catches the case where n_eligible_for_doseX is 0, where we want to avoid division by 0. I think I've got it right here that n_vaccination_t_X is just 0 in that case

Copy link

codecov bot commented Oct 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.03%. Comparing base (a47bb6e) to head (3309e74).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #37   +/-   ##
=======================================
  Coverage   60.03%   60.03%           
=======================================
  Files           9        9           
  Lines        2117     2117           
=======================================
  Hits         1271     1271           
  Misses        846      846           

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

@edknock edknock changed the title cacth case where n_eligible_for_doseX is 0, avoid division by 0 catch case where n_eligible_for_doseX is 0, avoid division by 0 Oct 12, 2024
@lwhittles lwhittles merged commit 34077cd into main Oct 14, 2024
10 checks passed
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