-
Notifications
You must be signed in to change notification settings - Fork 271
Changed label from segment_sort output obs access to params value #1458
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
Changed label from segment_sort output obs access to params value #1458
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1458 +/- ##
=======================================
Coverage 99.98% 99.98%
=======================================
Files 158 158
Lines 6983 6984 +1
=======================================
+ Hits 6982 6983 +1
Misses 1 1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1458 +/- ##
==========================================
- Coverage 99.98% 99.98% -0.01%
==========================================
Files 161 158 -3
Lines 7066 6984 -82
==========================================
- Hits 7065 6983 -82
Misses 1 1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Here's the code health analysis summary for commits Analysis Summary
|
@all-contributors please add @tj-schultz for code, bug |
I've put up a pull request to add @tj-schultz! 🎉 |
Describe your changes
Updated segment_sort to utilize params.sample_label when accessing output observations for trimming the tips to remove the stem. The KeyError was caused by the call to find_tips within segment_sort with no label parameter. find_tips therefore uses the params.sample_label to record the observations and thus if it is not "default", segment_sort fails.
segment_sort seems to be the only morphology function to access outputs.observations in this way; segment_curvature uses a literal key 'backend' to store segment_euclidean_length and segment_path_length observations before calculating curvature, but accesses find_tips output by return image and applying _cv2_findcontours, similarly to other functions.
Type of update
Associated issues
#1427
Additional context
Add any other context about the problem here.
For the reviewer
See this page for instructions on how to review the pull request.
plantcv/mkdocs.yml
updating.md