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 69 commits into
base: main
Choose a base branch
from

Conversation

HaleySchuhl
Copy link
Contributor

@HaleySchuhl HaleySchuhl commented Jan 9, 2025

Describe your changes

  • Adds a new function prune_by_height

Type of update
Is this a:

  • New feature

Associated issues

Additional context

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 e160b2a..da9b1b8. View details on DeepSource ↗.

Analysis Summary

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

Code Coverage Report

MetricAggregatePython
Branch Coverage100%100%
Composite Coverage99.9% (down 0.1% from main)99.9% (down 0.1% from main)
Line Coverage99.9% (down 0.1% from main)99.9% (down 0.1% from main)
New Branch Coverage100%100%
New Composite Coverage93.7%93.7%
New Line Coverage93.7%, ❌ Below Threshold93.7%, ❌ Below Threshold

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

@HaleySchuhl HaleySchuhl added new feature New feature ideas and solutions ready to review and removed work in progress Mark work in progress labels Feb 6, 2025
add observation for missing branch point & start sorting on distance if no branch point found, plus debug image
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 new feature New feature ideas and solutions ready to review
Projects
Status: Pull Requests
Development

Successfully merging this pull request may close these issues.

Prune by location (rather than by size)
1 participant