Skip to content

Conversation

@nfahlgren
Copy link
Member

Describe your changes
Adds a data subpackage with classes for a generic Image, color images (RGB and BGR), grayscale (GRAY), and hyperspectral (HSI). Adds tests for initializing the classes. Image is a subclass of numpy.ndarray and the other classes are subclasses of Image. For the standard data types this mostly just adds a uri (unique resource identifier such as a file path, URL, etc.) attribute to the arrays. HSI replicates what we have done with Spectral_data but in a NumPy compatible framework.

Type of update
Is this a: New feature or feature enhancement

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

@nfahlgren nfahlgren added this to the PlantCV v5.0 milestone Sep 20, 2025
@nfahlgren nfahlgren added new feature New feature ideas and solutions work in progress Mark work in progress labels Sep 20, 2025
@deepsource-io
Copy link

deepsource-io bot commented Sep 20, 2025

Here's the code health analysis summary for commits bce4d07..47e8143. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython❌ Failure
❗ 1 occurence introduced
View 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature New feature ideas and solutions work in progress Mark work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants