Skip to content

Remove utils module#1839

Merged
nfahlgren merged 28 commits intov5.0from
remove-utils
Feb 17, 2026
Merged

Remove utils module#1839
nfahlgren merged 28 commits intov5.0from
remove-utils

Conversation

@joshqsumner
Copy link
Contributor

Describe your changes
Deleted plantcv.utils moving tabulate_bayes_classes to plantcv.learn and json2csv/sample_images to plantcv.parallel.

Type of update
This is a... code cleanup?

Associated issues
Closes #1833

Additional context
Removes cli interface for json2csv, preserves other 2 cli options. Long term I think this is just an intermediate step to having json2csv in plantcv.plantcv so that we can have process_results functions for non-parallel workflows that generate several json files. Maybe at that point we will add another cli utility to combine all the matching json files in a directory again.

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

@joshqsumner joshqsumner added work in progress Mark work in progress update Updates an existing feature/method cleanup Code quality updates merge in order Set of PRs that need to be merged sequentially labels Oct 30, 2025
@joshqsumner joshqsumner changed the base branch from main to v5.0 October 30, 2025 16:52
@deepsource-io
Copy link

deepsource-io bot commented Oct 30, 2025

DeepSource Code Review

DeepSource reviewed changes in the commit range 08221a3..538c49a on this pull request. Below is the summary for the review, and you can see the individual issues we found as review comments.

For detailed review results, please see the PR on DeepSource ↗

PR Report Card

Security × 0 issues Overall PR Quality   

Reliability × 0 issues
Complexity × 0 issues
Hygiene × 0 issues
Coverage × 0 issues

Code Review Summary

Analyzer Status Summary Details
Python No new issues detected. Review ↗
Test coverage No new issues detected. Review ↗
How are these analyzer statuses calculated?

Administrators can configure which issue categories are reported and cause analysis to be marked as failed when detected. This helps prevent bad and insecure code from being introduced in the codebase. If you're an administrator, you can modify this in the repository's settings.

Code Coverage Summary

Language Line Coverage Branch Coverage
New Code Overall New Code Overall
Aggregate
100%
[✓ above threshold]
100%
100%
100%
Python
100%
[✓ above threshold]
100%
100%
100%

➟ Additional coverage metrics may have been reported. See full coverage report ↗

@joshqsumner joshqsumner added ready to review and removed work in progress Mark work in progress labels Oct 30, 2025
@nfahlgren nfahlgren added this to the PlantCV v5.0 milestone Feb 17, 2026
@nfahlgren nfahlgren merged commit 93599a2 into v5.0 Feb 17, 2026
5 checks passed
@nfahlgren nfahlgren deleted the remove-utils branch February 17, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Code quality updates merge in order Set of PRs that need to be merged sequentially ready to review update Updates an existing feature/method

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Removing plantcv.utils module

2 participants