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

Make the 99th perc default constructor a censored_pmf feature #278

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

SamuelBrand1
Copy link
Collaborator

@SamuelBrand1 SamuelBrand1 commented Jun 12, 2024

This is a small PR that follows on from #265. Whilst working on #256 I realised that #265 change should apply to both the observation and the discretised generation interval construction (this is useful when considering scenarios with different mean generation intervals).

This PR does this, plus adds a unit test. The unit tests to LatentDelay are unchanged because this default is now inherited from censored_pmf.

Slight modification is that the inferred D (right truncation value) is now rounded to nearest multiple of $\Delta d$ rather than integer.

@SamuelBrand1 SamuelBrand1 requested a review from seabbs June 12, 2024 11:04
@seabbs seabbs enabled auto-merge June 12, 2024 11:06
seabbs
seabbs previously approved these changes Jun 12, 2024
Copy link
Collaborator

@seabbs seabbs left a comment

Choose a reason for hiding this comment

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

Agree. LGTM

@codecov-commenter
Copy link

codecov-commenter commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.85%. Comparing base (792eed6) to head (48cd8ec).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #278      +/-   ##
==========================================
+ Coverage   92.84%   92.85%   +0.01%     
==========================================
  Files          47       47              
  Lines         489      490       +1     
==========================================
+ Hits          454      455       +1     
  Misses         35       35              

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

@SamuelBrand1
Copy link
Collaborator Author

Just caught the EpiData constructor and set to this new default.

@SamuelBrand1 SamuelBrand1 requested a review from seabbs June 12, 2024 11:17
@seabbs seabbs added this pull request to the merge queue Jun 12, 2024
Merged via the queue into main with commit d3f1f9c Jun 12, 2024
10 checks passed
@seabbs seabbs deleted the change-censored_pmf-default branch June 12, 2024 12:16
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.

3 participants