Skip to content

Read MMStack with Zarr v3#293

Merged
ziw-liu merged 9 commits into
273-use-zarr-python-3from
mmstack-no-zarr
Apr 4, 2025
Merged

Read MMStack with Zarr v3#293
ziw-liu merged 9 commits into
273-use-zarr-python-3from
mmstack-no-zarr

Conversation

@ziw-liu
Copy link
Copy Markdown
Contributor

@ziw-liu ziw-liu commented Apr 3, 2025

Fix #292 by wrapping the ZarrTiffStore's storage mapping with fsspec so it can be used with zarr-python 3.

Also fixed deprecated TIFF and Zarr readers.

@ziw-liu
Copy link
Copy Markdown
Contributor Author

ziw-liu commented Apr 3, 2025

The converter is still broken.

@ziw-liu ziw-liu marked this pull request as ready for review April 3, 2025 21:57
@ziw-liu ziw-liu requested a review from aliddell April 3, 2025 21:57
@ziw-liu ziw-liu added this to the 0.3.0 milestone Apr 3, 2025
@ziw-liu ziw-liu requested review from edyoshikun and ieivanov April 4, 2025 18:34
@ziw-liu ziw-liu added the upstream Issues with upstream dependencies label Apr 4, 2025
@ziw-liu
Copy link
Copy Markdown
Contributor Author

ziw-liu commented Apr 4, 2025

The converter also works now, merging.

@ziw-liu ziw-liu merged commit 2516c9b into 273-use-zarr-python-3 Apr 4, 2025
@ziw-liu ziw-liu deleted the mmstack-no-zarr branch April 4, 2025 20:49
ziw-liu added a commit that referenced this pull request May 19, 2025
* wip

* wip: 2025-02-27

* Undo reformatting

* Remove unused imports

* Fix miscellaneous failing tests.

* Get rename_well working.

* sort import

* Read MMStack with Zarr v3 (#293)

* use fsspec as a wrapper for ZarrTiffStore

* update deprecated readers and tests

* document the helper function

* add back the binary check after a flag

* use kwarg for file mode in reader

* restore dtype attribute

* restore opening zarr with dask

* stringify path name

* remove redundant dtype

* add rich for zarr v3 print tree

* skip tests that require ome-zarr-py

* fix file list checking
it doesn't matter what the order is

* fix commas

* stringify path names

* `test_rename_well` no longer broken, remove mark

* from_positions is actually broken
this is not related to ome-zarr-py

* write to stdout
pallets/click#2874

* remove unused import

* non-zero return code with no args
pallets/click#1489

---------

Co-authored-by: Ziwen Liu <67518483+ziw-liu@users.noreply.github.com>
ziw-liu added a commit that referenced this pull request Jun 4, 2025
* wip

* wip: 2025-02-27

* Undo reformatting

* Remove unused imports

* Fix miscellaneous failing tests.

* Get rename_well working.

* sort import

* Read MMStack with Zarr v3 (#293)

* use fsspec as a wrapper for ZarrTiffStore

* update deprecated readers and tests

* document the helper function

* add back the binary check after a flag

* use kwarg for file mode in reader

* restore dtype attribute

* restore opening zarr with dask

* stringify path name

* remove redundant dtype

* add rich for zarr v3 print tree

* skip tests that require ome-zarr-py

* fix file list checking
it doesn't matter what the order is

* fix commas

* stringify path names

* detect ome key in reader

* allow multiscales to not have version

* wip: allow reading v0.5 images

* normalize store path

* update docstring

* remove unused import

* remove zarr-python synchronizer
zarr-developers/zarr-python#1596

* allow empty zarr examples

* add example json files

* fixture for example v0.5 HCS dataset

* unify ome container unwrapping

* run PR tests for all target branches

* test with absolute paths
zarr-python 3.0.8 breakage

* avoid big endian test cases

* avoid yanked versions

* fix zarr-python breakage

* revert keyword argument name

* fix version detection after zarr-python breakage

* test with absolute path

* Revert "allow empty zarr examples"

This reverts commit 77146dd.

* Test reading NGFF v0.5 with acquire-zarr

* check binary values

* simplify file mode switch

Co-authored-by: Alan Liddell <alan.c.liddell@gmail.com>

* remove redundant deletion

---------

Co-authored-by: Alan Liddell <alan.c.liddell@gmail.com>
Co-authored-by: Alan Liddell <aliddell@chanzuckerberg.com>
ziw-liu added a commit that referenced this pull request Aug 20, 2025
* wip

* wip: 2025-02-27

* Undo reformatting

* Remove unused imports

* Fix miscellaneous failing tests.

* Get rename_well working.

* sort import

* Read MMStack with Zarr v3 (#293)

* use fsspec as a wrapper for ZarrTiffStore

* update deprecated readers and tests

* document the helper function

* add back the binary check after a flag

* use kwarg for file mode in reader

* restore dtype attribute

* restore opening zarr with dask

* stringify path name

* remove redundant dtype

* add rich for zarr v3 print tree

* skip tests that require ome-zarr-py

* fix file list checking
it doesn't matter what the order is

* fix commas

* stringify path names

* `test_rename_well` no longer broken, remove mark

* from_positions is actually broken
this is not related to ome-zarr-py

* enable tests against ome-zarr-py

* from_positions is actually broken
this is not related to ome-zarr-py

* replace almost equal assertion in the ngff-zarr test

* unskip ome-zarr-py tests

* consolidate import paths

* bump test requirement

---------

Co-authored-by: Alan Liddell <alan.c.liddell@gmail.com>
Co-authored-by: Alan Liddell <aliddell@chanzuckerberg.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upstream Issues with upstream dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant