-
-
Notifications
You must be signed in to change notification settings - Fork 445
Fix bounding box to not contain only shape interior but also edges #7332
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
Conversation
Codecov ReportAll modifie 8000 d and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7332 +/- ##
==========================================
- Coverage 92.86% 92.74% -0.12%
==========================================
Files 623 623
Lines 57479 57517 +38
==========================================
- Hits 53376 53344 -32
- Misses 4103 4173 +70 ☔ View full report in Codecov by Sentry. |
This pull request has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/how-to-clear-shape-layer-in-napari/103785/2 |
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.
Python lgtm. A few suggestions on test function docstrings. Thanks @Czaki
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
I've updated the description to have more details without linking out. I think this should be safe to merge. |
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.
Makes sense to me, also tested this locally quite a bit.
References and relevant issues
https://napari.zulipchat.com/#narrow/stream/212875-general/topic/Issue.20grabbing.20lines.20in.20shape.20layer/near/477001240
Description
In #7144 we attempted to speed up mouse click testing in shapes by using shapes bounding boxes. However, there were two bugs in that implementation:
This PR fixes both issues by:
It also adds tests for these missed elements.