Skip to content
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

Add "prune by height" function to morphology subpackage #1647

Open
wants to merge 51 commits into
base: main
Choose a base branch
from

Conversation

HaleySchuhl
Copy link
Contributor

Describe your changes
Rather than pruning by size, we can prune leaves by height which is helpful for tillering grasses.

Type of update
Is this a:

  • New feature
  • Work in progress

Associated issues
Reference associated issue numbers. Does this pull request close any issues?

Additional context
Merged changes in #1644 into this branch too, so that all new tools could be used from this location. Merge only AFTER #1644 has been merged.

For the reviewer
See this page for instructions on how to review the pull request.

  • PR functionality reviewed in a Jupyter Notebook
  • All tests pass
  • Test coverage remains 100%
  • Documentation tested
  • New documentation pages added to plantcv/mkdocs.yml
  • Changes to function input/output signatures added to updating.md
  • Code reviewed
  • PR approved

added comments, combine imports
avoid saving to outputs in the helper function but produce the same relevant outputs, update instances of find_tips getting used throughout morphology
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
@HaleySchuhl HaleySchuhl added work in progress Mark work in progress merge in order Set of PRs that need to be merged sequentially labels Jan 9, 2025
@HaleySchuhl HaleySchuhl added this to the PlantCV v4.7 milestone Jan 9, 2025
@HaleySchuhl HaleySchuhl self-assigned this Jan 9, 2025
Copy link

deepsource-io bot commented Jan 9, 2025

Here's the code health analysis summary for commits c6105a7..09ee6b8. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython❌ Failure
❗ 12 occurences introduced
🎯 1 occurence resolved
View Check ↗
DeepSource Test coverage LogoTest coverage❌ Failure
❗ 1 occurence introduced
🚨 1 failing metric
View Check ↗

Code Coverage Report

MetricAggregatePython
Branch Coverage100%100%
Composite Coverage99.6% (down 0.4% from main)99.6% (down 0.4% from main)
Line Coverage99.6% (down 0.4% from main)99.6% (down 0.4% from main)
New Branch Coverage100%100%
New Composite Coverage88.4%88.4%
New Line Coverage88.4%, ❌ Below Threshold88.4%, ❌ Below Threshold

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge in order Set of PRs that need to be merged sequentially work in progress Mark work in progress
Projects
Status: Pull Requests
Development

Successfully merging this pull request may close these issues.

1 participant