Skip to content

Update array stacking for color standard processing #1703

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

Merged
merged 5 commits into from
May 13, 2025
Merged

Update array stacking for color standard processing #1703

merged 5 commits into from
May 13, 2025

Conversation

emmanuel-ferdman
Copy link
Contributor

@emmanuel-ferdman emmanuel-ferdman commented May 12, 2025

Describe your changes
This PR modernizes NumPy array stacking in the color chip data preparation pipeline by replacing deprecated aliases.
It solves the following warnings which you can find in the CI logs:

DeprecationWarning: row_stack alias is deprecated. Use np.vstack directly.

It also fixes a few typos along the way.

Type of update
Is this a:

  • Bug fix

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

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Copy link

deepsource-io bot commented May 12, 2025

Here's the code health analysis summary for commits 88c5618..13d5ce7. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython✅ SuccessView 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.

@nfahlgren nfahlgren added ready to review update Updates an existing feature/method labels May 13, 2025
@nfahlgren nfahlgren added this to the PlantCV v4.8 milestone May 13, 2025
@github-project-automation github-project-automation bot moved this to Pull Requests in PlantCV4 May 13, 2025
@emmanuel-ferdman
Copy link
Contributor Author

@nfahlgren looks like the DeepSource is failing to not-related changes in same file

@nfahlgren
Copy link
Member

@emmanuel-ferdman, for sure. I'm looking at them to see if they are easy/worth fixing. One was a false positive, the comment just happened to look like code. The unbalanced tuple unpacking errors I'm not sure about, I might just ignore them and merge. Thanks for your help!

@nfahlgren nfahlgren merged commit f4caba5 into danforthcenter:main May 13, 2025
4 of 5 checks passed
@github-project-automation github-project-automation bot moved this from Pull Requests to Done in PlantCV4 May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to review update Updates an existing feature/method
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants