Conversation
…fg, and update version handling in __init__.py. Drop support for older python versions.
…and change colors to magenta and semi-transparent yellow
Introduces unit tests for the draw_fixed_shapes function, covering both 2D and 3D cases with different shape types and sizes.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #56 +/- ##
==========================================
+ Coverage 87.00% 88.21% +1.21%
==========================================
Files 6 6
Lines 331 382 +51
==========================================
+ Hits 288 337 +49
- Misses 43 45 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Replaces explicit dependencies with 'testing' extras in tox.ini and enables isolated builds.
Adds Windows OpenGL installation, updates test and deploy steps to use newer actions and tools, removes unnecessary test dependencies, and switches to 'python -m build' for packaging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new functionality for drawing fixed-size shapes at specified coordinates, improvements to the cropping workflow, and modernization of the project configuration. The plugin now supports drawing rectangles and ellipses of fixed dimensions at points, and adopts the latest standards for napari plugin packaging and distribution.
New features and functionality:
draw_fixed_shapesfunction and widget, allowing users to draw rectangles or ellipses of fixed size at points layer coordinates. This includes both the implementation (draw_fixed_shapesinnapari_crop/_function.py) and comprehensive tests for 2D and 3D cases. [1] [2]napari.yaml), making it available in the napari UI.Enhancements to cropping workflow:
crop_regionto support returning cropped data as numpy arrays (as_numpyparameter) and optionally applying translation (translateparameter). Improved the function docstring for clarity. [1] [2] [3]Project configuration modernization:
setup.cfgandsetup.pyto a modernpyproject.toml, supporting dynamic versioning and improved packaging standards. [1] [2] [3]tox.inito support Python 3.10, 3.11, and 3.12, dropping older Python versions.Documentation improvements:
Codebase cleanup and refactoring:
napari_crop/_dock_widgets.pyandnapari_crop/__init__.pyto streamline widget and function exposure. [1] [2]