-
Notifications
You must be signed in to change notification settings - Fork 74
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
API for counting coalescing pairs #2915
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2915 +/- ##
==========================================
- Coverage 89.68% 89.61% -0.07%
==========================================
Files 29 29
Lines 30391 30176 -215
Branches 5907 5874 -33
==========================================
- Hits 27255 27043 -212
Misses 1793 1793
+ Partials 1343 1340 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@jeromekelleher and @petrelharp this is ready for a look whenever you have time. Shall I move the core algorithm into the C library in this PR or in a followup? |
The |
This looks great - I've made some comments; and perhaps it needs another test case for which some samples might be parents to other samples? (e.g., produced by the nonWF simulator in the test suite, I think?) |
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.
Generally looks good, I'll have a closer look when @petrelharp's comments are addressed.
I'd suggest getting this much merged first, then following up with a draft PR that implements the algorithm in Python (in the test file) using the TreePosition code. Once we're happy with that algorithm,translating to C should be straightforward.
Right -- if you've got a node with span |
Seems pretty unlikely to me |
We discussed changing the name, but I've forgotten to what? And, to be clear, i think Jerome's suggesting modifying this python algorithm, not adding a new one. |
This is ready for another look ...
|
But in a followup PR, right? |
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.
LGTM - some minor points on naming the time windows argument and how we deal with negative times. If you like you can drop this argument from the initial version and make an issue to track?
Any idea why codecov isn't working here @benjeffery? It's making the diff impossible to read here, which is worse than useless. |
Thanks @jeromekelleher, it'd be great to sort this API out now as it's very close. re: naming, @petrelharp brought up that the stats methods will eventually have a
Either is fine by me. Do you have a preference @petrelharp? |
I think having this method accept an additional argument to |
I'm seeing a "Commit YAML is invalid" error at codecov - checking it out. |
@Mergifyio rebase |
✅ Branch has been successfully rebased |
2a70d13
to
4265531
Compare
@nspope I've rebased here to fix CI so you won't be able to push changes without a reset. Not sure how much of a git ninja you are so let me know if you need to push changes. |
Sounds good to me! |
Thanks @benjeffery! Looks like codecov is failing lwt-tests and python-c-tests -- I don't think that's due to this PR? |
Thanks @jeromekelleher -- I've modified so that |
Darn, it looks like codecov is still mangling the diff, though this is rebased onto 9e1bf0 ? Sorry Ben, maybe rebasing / pushing on my end screwed something up? |
So the comment in #2915 (comment) is correct - only one line is missing coverage. However, previous comments made by codecov are not removed :( |
272552b
to
b43d1b8
Compare
Hmm, now the post-test Codecov upload is erroring out:
I'll go ahead and open a new PR ... |
Yeah, we sometimes get that one. I spent a while investigating it and it seems to be transient on codecov's end. |
@benjeffery it may be related to v3 codecov-actions deprecation, see comment. Happy to wait and see if it resolves itself though |
7a3f7b7
to
60f9278
Compare
Well-- bumping codecov-actions to v4 got rid of the upload errors, but the coverage reports don't seem to be making their way here. |
@benjeffery Sorry for the hassle ... but any chance you could clone and force-push this to re-trigger codecov? To see if the issue might be related to this PR coming from a fork? It seems like the coverage report is working fine in #2924 |
60f9278
to
601a28e
Compare
@Mergifyio rebase |
…tion Add test against worked example Remove unused imports More efficient windowing Raise errors with invalid inputs Misc. fixes and tests; add time discretisation argument Test nonsuccinct case Fix negative times for time windows Delete accidental line copy Remove unneeded if Error message Fix test for error message
✅ Branch has been successfully rebased |
601a28e
to
f7078da
Compare
Codecov issue now seems fixed here - it has removed all it's comments about uncovered lines. |
Are we good to merge then @nspope? |
Yes! Thanks for the fix @benjeffery |
Core algorithm, tests and API that partially address #2904