From 8e110c2a6eccb773edbb11a4ec7448da892f1686 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Thu, 21 Mar 2024 08:47:12 -0400 Subject: [PATCH] Add a dependency to the zarr source to read more compression types --- CHANGELOG.md | 3 +++ sources/zarr/large_image_source_zarr/__init__.py | 1 + sources/zarr/setup.py | 3 +++ 3 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb7acd026..285360026 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 1.27.5 +### Improvements +- Add a dependency to the zarr source to read more compression types ([#1480](../../pull/1480)) + ### Bug Fixes - Fix an issue with single band on multi source with non uniform sources ([#1474](../../pull/1474)) - Allow alternate name axes in the multi source schema ([#1476](../../pull/1476)) diff --git a/sources/zarr/large_image_source_zarr/__init__.py b/sources/zarr/large_image_source_zarr/__init__.py index 39bfb4f8f..71f0273bd 100644 --- a/sources/zarr/large_image_source_zarr/__init__.py +++ b/sources/zarr/large_image_source_zarr/__init__.py @@ -34,6 +34,7 @@ class ZarrFileTileSource(FileTileSource, metaclass=LruCacheMetaclass): 'zarr': SourcePriority.PREFERRED, 'zgroup': SourcePriority.PREFERRED, 'zattrs': SourcePriority.PREFERRED, + 'zarray': SourcePriority.PREFERRED, 'db': SourcePriority.MEDIUM, } diff --git a/sources/zarr/setup.py b/sources/zarr/setup.py index f60ae702c..7dd58a22a 100644 --- a/sources/zarr/setup.py +++ b/sources/zarr/setup.py @@ -53,6 +53,9 @@ def prerelease_local_scheme(version): install_requires=[ f'large-image{limit_version}', 'zarr', + # I am uncertain why this is required, since numcodecs is required by + # zarr; but without it some jpeg encoded data cannot be read + 'imagecodecs-numcodecs', ], extras_require={ 'girder': f'girder-large-image{limit_version}',