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
aicsimageio
library tobioio
following the migration guide. AICSImageio is being deprecated and bioio provides improved dependency management and continued support.Changes Made
Dependencies:
core/pyproject.toml
andplugin/pyproject.toml
to usebioio>=3.0.0
instead ofaicsimageio>=4.6.3
Import replacements:
from aicsimageio import AICSImage
→from bioio import BioImage
from aicsimageio.aics_image import AICSImage
→from bioio import BioImage
from aicsimageio.types import PhysicalPixelSizes
→from bioio import PhysicalPixelSizes
from aicsimageio.types import ImageLike
→from bioio import ImageLike
Class references:
AICSImage
class references updated toBioImage
API Compatibility
BioImage provides an identical interface to AICSImage, making this a seamless drop-in replacement:
data
,dims
,physical_pixel_sizes
,xarray_dask_data
Files Modified
plugin/napari_lattice/fields.py
plugin/napari_lattice/reader.py
plugin/tests/test_dock_widget.py
core/lls_core/types.py
core/lls_core/deconvolution.py
core/lls_core/models/deskew.py
core/tests/utils.py
core/tests/test_cli.py
The migration follows the minimal change principle - only the necessary imports and class names were changed. The
napari-aicsimageio
dependency remains unchanged asnapari-bioio
doesn'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.