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

[bugfix] Dont go out of bound if people are too old. #26

Merged
merged 4 commits into from
Nov 24, 2024
Merged

Conversation

lrnv
Copy link
Member

@lrnv lrnv commented Nov 24, 2024

When people are too old for the life table, this PR added a simple approximation by clamping them into the time frame.

This is an approximation, but should be good enough for people that are not too far. This allows to always give a rate whatever the person, even if it is a bit approximated.

Copy link

codecov bot commented Nov 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.56%. Comparing base (84b2edd) to head (a5c8c5d).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #26      +/-   ##
==========================================
+ Coverage   73.68%   74.56%   +0.87%     
==========================================
  Files           4        4              
  Lines         114      114              
==========================================
+ Hits           84       85       +1     
+ Misses         30       29       -1     

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


🚨 Try these New Features:

@lrnv lrnv merged commit ea93b2e into main Nov 24, 2024
5 checks passed
@lrnv lrnv deleted the add_max_one branch November 24, 2024 16:49
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.

1 participant