add ndevio-sampledata with new neuron labels #38
Merged
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.
Description
Add sample data to ndevio, and use
nImage.get_layer_data_tuplesas a way to show it in action. A double-win, documentating API and sample data :)files <100kb are placed in the git history
other files are distributed via zenodo and managed with pooch
Copilot Overview
This pull request introduces a comprehensive sample data module for the
ndevionapari plugin, enabling the loading and testing of example datasets both locally and via remote download.Sample Data Integration and Testing
src/ndevio/sampledatamodule implementing napari's sample data specification, with functions to load various example datasets (logo, neocortex, neuron labels, scratch assay, etc.), supporting both local and remote (Zenodo) sources viapooch. (src/ndevio/sampledata/__init__.py,src/ndevio/sampledata/_sample_data.py) [1] [2]pytest.mark.networkfor remote datasets. (tests/test_sampledata.py)src/ndevio/napari.yaml) [1] [2]Plugin Metadata and Dependency Updates
napari.yamlto reflect new sample data and IO capabilities. (src/ndevio/napari.yaml)poochas a required dependency for remote sample data downloads. (pyproject.toml)networkpytest marker for tests requiring network access. (pyproject.toml)Logic and Formatting Improvements
_build_single_layer_tupleto set blending mode based on channel index and count. (src/ndevio/nimage.py)src/ndevio/widgets/_utilities_container.py) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]