Skip to content

Conversation

@Nirkan
Copy link

@Nirkan Nirkan commented Dec 15, 2025

Describe your changes
An empty mask will fail if provided to pcv.threshold.triangle so this bugfix detects empty mask and returns it without error.

Type of update
Is this a:

  • Bug fix

Associated issues
This is associate with issue #1742

Additional context
Follows #1811 .

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

@deepsource-io
Copy link

deepsource-io bot commented Dec 15, 2025

Here's the code health analysis summary for commits 5e908b4..4821fd4. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython❌ Failure
❗ 1 occurence introduced
View Check ↗
DeepSource Test coverage LogoTest coverage⚠️ Artifact not reportedTimed out: Artifact was never reportedView Check ↗

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

@Nirkan Nirkan changed the title Fix/issue 1742 threshold triangle Add empty mask handling within threshold.triangle Dec 15, 2025
@nfahlgren nfahlgren added enhancement Enhancements to existing features ready to review labels Dec 23, 2025
@github-project-automation github-project-automation bot moved this to Pull Requests in PlantCV4 Dec 23, 2025
@nfahlgren nfahlgren added this to the PlantCV v4.11 milestone Dec 23, 2025
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

Projects

Status: Pull Requests

Development

Successfully merging this pull request may close these issues.

2 participants