Skip to content

Napari bounding box#47

Merged
maliagehan merged 6 commits intomainfrom
napari-bounding-box
Feb 24, 2026
Merged

Napari bounding box#47
maliagehan merged 6 commits intomainfrom
napari-bounding-box

Conversation

@k034b363
Copy link
Contributor

@k034b363 k034b363 commented Jan 20, 2026

Describe your changes
Adds a function that takes a napari viewer object with a shapes layer that has rectangular polygons and outputs a list of x, y, height, and width of the rectangle suitable for either defining an ROI or specifying a bounding box for segment anything.

Type of update

  • 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 changelog.md
  • Code reviewed
  • PR approved

@deepsource-io
Copy link

deepsource-io bot commented Jan 20, 2026

DeepSource Code Review

We reviewed changes in afd540f...e2c1c33 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Python Feb 23, 2026 9:14p.m. Review ↗
Test coverage Feb 23, 2026 9:18p.m. Review ↗

Code Coverage Summary

Language Line Coverage (New Code) Line Coverage (Overall)
Aggregate
100%
100%
Python
100%
100%

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

@k034b363 k034b363 added new feature New feature ideas and solutions ready to review Ready for code review labels Jan 20, 2026
@k034b363 k034b363 requested a review from maliagehan January 20, 2026 22:08
@maliagehan maliagehan self-assigned this Jan 30, 2026
changed docstring style and flake8 for test.
Copy link
Member

@maliagehan maliagehan left a comment

Choose a reason for hiding this comment

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

Reviewed, and put review notebook in drive. I debated if we should combine the required add shape step into the box function (list of layers?), but there may be reasons not to do this for this version.

Copy link
Member

Choose a reason for hiding this comment

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

Changed the docstring format (we still need to do this on other files in the repo, but this one has been changed to numpydoc style)

@maliagehan maliagehan merged commit a6179f8 into main Feb 24, 2026
5 checks passed
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 ready to review Ready for code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants