Migrate from aicsimageio to bioio #123
Draft
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 PR migrates napari_lattice from the deprecated
aicsimageiolibrary tobioiofollowing the migration guide. AICSImageio is being deprecated and bioio provides improved dependency management and continued support.Changes Made
Dependencies:
core/pyproject.tomlandplugin/pyproject.tomlto usebioio>=3.0.0instead ofaicsimageio>=4.6.3Import replacements:
from aicsimageio import AICSImage→from bioio import BioImagefrom aicsimageio.aics_image import AICSImage→from bioio import BioImagefrom aicsimageio.types import PhysicalPixelSizes→from bioio import PhysicalPixelSizesfrom aicsimageio.types import ImageLike→from bioio import ImageLikeClass references:
AICSImageclass references updated toBioImageAPI Compatibility
BioImage provides an identical interface to AICSImage, making this a seamless drop-in replacement:
data,dims,physical_pixel_sizes,xarray_dask_dataFiles Modified
plugin/napari_lattice/fields.pyplugin/napari_lattice/reader.pyplugin/tests/test_dock_widget.pycore/lls_core/types.pycore/lls_core/deconvolution.pycore/lls_core/models/deskew.pycore/tests/utils.pycore/tests/test_cli.pyThe migration follows the minimal change principle - only the necessary imports and class names were changed. The
napari-aicsimageiodependency remains unchanged asnapari-bioiodoesn't exist yet.Fixes #100.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.