Skip to content

Conversation

caitlynelliott56
Copy link
Contributor

@caitlynelliott56 caitlynelliott56 commented Jul 16, 2025

Describe your changes
A clear and concise description of what changes are made by this pull request.
What was the previous functionality (if relevant) and what can we do now with
these changes.

Changes report_size_marker to output as metadata instead of observations and to fail gracefully if size marker is not detected.

Type of update
Is this a:

  • Bug fix
  • New feature or feature enhancement
  • Update to documentation

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

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.

  • 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

Copy link

deepsource-io bot commented Jul 16, 2025

Here's the code health analysis summary for commits 5f38a5c..6411a7b. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython✅ SuccessView Check ↗
DeepSource Test coverage LogoTest coverage✅ SuccessView Check ↗

Code Coverage Report

MetricAggregatePython
Branch Coverage100%100%
Composite Coverage100%100%
Line Coverage100%100%
New Branch Coverage100%100%
New Composite Coverage100%100%
New Line Coverage100%, ✅ Above Threshold100%, ✅ Above Threshold

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

@HaleySchuhl HaleySchuhl added enhancement Enhancements to existing features update Updates an existing feature/method labels Jul 16, 2025
@github-project-automation github-project-automation bot moved this to Pull Requests in PlantCV4 Jul 16, 2025
@HaleySchuhl HaleySchuhl added this to the PlantCV v4.9 milestone Jul 16, 2025
@HaleySchuhl HaleySchuhl added the work in progress Mark work in progress label Jul 16, 2025
@caitlynelliott56 caitlynelliott56 added ready to review and removed work in progress Mark work in progress labels Jul 17, 2025
Copy link
Member

@nfahlgren nfahlgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we only return the area of the size marker. I think removing the fitted ellipse makes sense since that is best for a circular size marker, but the new documentation suggests you can set the pixel height and width by taking the square root of the area. That works for a rectangular marker but is not the height and width of a circle or other polygon. Instead, could we include the observed height and width of the marker in addition to the area?

@nfahlgren nfahlgren dismissed their stale review July 21, 2025 18:40

After discussion the PR is good to go without these changes

@HaleySchuhl HaleySchuhl self-requested a review July 21, 2025 21:11
@nfahlgren nfahlgren merged commit 15300b5 into main Jul 29, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Pull Requests to Done in PlantCV4 Jul 29, 2025
@nfahlgren nfahlgren deleted the report-size-marker-warning-message branch July 29, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancements to existing features ready to review update Updates an existing feature/method
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add "no size marker detected" fatal error message to pcv.report_size_marker ?
3 participants