Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Sep 9, 2025

This PR migrates napari_lattice from the deprecated aicsimageio library to bioio following the migration guide. AICSImageio is being deprecated and bioio provides improved dependency management and continued support.

Changes Made

Dependencies:

  • Updated both core/pyproject.toml and plugin/pyproject.toml to use bioio>=3.0.0 instead of aicsimageio>=4.6.3

Import replacements:

  • from aicsimageio import AICSImagefrom bioio import BioImage
  • from aicsimageio.aics_image import AICSImagefrom bioio import BioImage
  • from aicsimageio.types import PhysicalPixelSizesfrom bioio import PhysicalPixelSizes
  • from aicsimageio.types import ImageLikefrom bioio import ImageLike

Class references:

  • All AICSImage class references updated to BioImage
  • Type annotations and error messages updated accordingly

API Compatibility

BioImage provides an identical interface to AICSImage, making this a seamless drop-in replacement:

  • Same constructor parameters
  • Same attributes: data, dims, physical_pixel_sizes, xarray_dask_data
  • Same PhysicalPixelSizes class interface

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 as napari-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.

Copy link
Author

Copilot AI commented Sep 9, 2025

@pr4deepr 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

Co-authored-by: pr4deepr <13831458+pr4deepr@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Migrate to bioio from aicsimageio Migrate from aicsimageio to bioio Sep 9, 2025
@Copilot Copilot AI requested a review from pr4deepr September 9, 2025 06:06
Copilot finished work on behalf of pr4deepr September 9, 2025 06:06
@jni
Copy link

jni commented Oct 9, 2025

@pr4deepr the aicsimageio dependency is keeping napari-lattice pinned to an ancient napari version. Do you want me to take over from copilot? 😂

Are there any other reasons the installation instructions specify old napari and old numpy?

@pr4deepr
Copy link
Collaborator

pr4deepr commented Oct 9, 2025

Thanks @jni . Been meaning to get to this, but struggling with time.
That would be super helpful.
I think some of the dependency problem is to do with napari-aicsimageio and depending on aicsimageio.
As there is no napari plugin for bioio (AFAIK), we'll have to create a reader for the czi file atleast, similar to this:

def bdv_h5_reader(path):

pyclesperanto_prototype depends on older version of numpy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to bioio from aicsimageio

3 participants