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

Fix mask kmeans output type #1648

Merged
merged 7 commits into from
Feb 19, 2025
Merged

Fix mask kmeans output type #1648

merged 7 commits into from
Feb 19, 2025

Conversation

k034b363
Copy link
Contributor

@k034b363 k034b363 commented Jan 9, 2025

Describe your changes
The outputs of both kmeans_classifier functions (predict and mask) were types other than uint8. This PR fixes both functions so that the output types are consistent with downstream PlantCV analysis

Type of update
Is this a:

  • Bug fix

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

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 Jan 9, 2025

Here's the code health analysis summary for commits abe7927..5f97cee. 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.

@k034b363 k034b363 added this to the PlantCV v4.x milestone Jan 9, 2025
@HaleySchuhl HaleySchuhl self-requested a review January 24, 2025 16:39
@nfahlgren nfahlgren modified the milestones: PlantCV v4.x, PlantCV v4.7 Jan 24, 2025
instead of full trace of the function location, just document the usage for consistency with other docs
Copy link
Contributor

@HaleySchuhl HaleySchuhl left a comment

Choose a reason for hiding this comment

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

Looks good! Tested this on the silphium notebook. I made a minor change to the docs page for syntax consistency

@nfahlgren nfahlgren merged commit 432fcd2 into main Feb 19, 2025
5 checks passed
@nfahlgren nfahlgren deleted the fix-mask-kmeans-output-type branch February 19, 2025 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants