-
Notifications
You must be signed in to change notification settings - Fork 73
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
Remove tsk_bug_assertion in pair_coalescence_rates triggered by fp error #3038
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3038 +/- ##
==========================================
- Coverage 89.85% 87.07% -2.78%
==========================================
Files 29 11 -18
Lines 32128 24666 -7462
Branches 5763 4556 -1207
==========================================
- Hits 28868 21478 -7390
+ Misses 1859 1824 -35
+ Partials 1401 1364 -37
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Can we get a test case provoking the old assert? |
I added a test that would hit the assert on main. There's a check for the failure condition (roundoff error) on the python side. |
2e666a8
to
45e5f66
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice - I think it's important to capture odd corner cases in the test suite as they tend to recur...
I agree! I think this is ready to go in, then? |
Looks like mergify is failing with
I've logged out/in to mergify again but not sure if it'll pick up on that |
@Mergifyio rebase |
Add test for completion with roundoff error
✅ Branch has been successfully rebased |
45e5f66
to
39593ec
Compare
I'm not sure why but recently it hasn't been merging PRs from accounts not on a fixed list. I've manual merged. |
Apologies for dropping a bug fix immediately after a release (fixes #3035).
This removes an assertion from the C library that can be spuriously triggered by a floating point comparison against 1 (which should only happen in the edge case where a single time window contains all the coalescence events).