-
Notifications
You must be signed in to change notification settings - Fork 265
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
Update morphology tips outputs #1644
base: main
Are you sure you want to change the base?
Conversation
avoid saving to outputs in the helper function but produce the same relevant outputs, update instances of find_tips getting used throughout morphology
Here's the code health analysis summary for commits Analysis Summary
Code Coverage Report
|
img input not just for plotting debug
add optimal assignment input
since no outputs in sorting, skip the label storage. wasn't used downstream but also don't need to store anymore since _find_tips also doesn't store to outputs
rearrage ome imports and change where things are getting called from
Jan 3 updates: the deepsource complaint about the complexity of While thinking about how to get biologically-ordered observations out from a morphology workflow given this new function, there is a reason to return a re-ordered list of objects. These can then get used downstream to get consistently labeled leaf segment observations. |
Describe your changes
The saved skeleton
tips
coordinates toOutputs
was easily overwritten by other morphology functions that utilize thepcv.morphology.find_tips
function. This branch contains changes tofind_tips
so that there is a helper function now that is used internally. Also addspcv.morphology.segment_ends
which saves both ends, the tip coordinates and the coordinates of the segment touching the branch point.Type of update
Is this a:
Associated issues
plantcv.morphology
sub-package #1643Additional context
Using the internal segment end coordinates for leaf ID order
For the reviewer
See this page for instructions on how to review the pull request.
plantcv/mkdocs.yml
updating.md
Debug Options
use
segment_img
as required input and plot coordinates on topuse
mask
as required input and plot segments + coordinates