Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zarr3 #26

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "ez_zarr"
version = "0.3.5"
version = "0.4.0"
description = "Give easy, high-level access to ome-zarr filesets."
readme = { file = "README.md", content-type = "text/markdown" }
authors = [
Expand Down
2 changes: 1 addition & 1 deletion src/ez_zarr/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '0.3.5'
__version__ = '0.4.0'
__author__ = 'Silvia Barbiero, Michael Stadler, Charlotte Soneson'
8 changes: 4 additions & 4 deletions src/ez_zarr/ome_zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

__all__ = ['Image', 'ImageList', 'create_name_row_col',
'create_name_plate_A01', 'import_plate']
__version__ = '0.3.5'
__version__ = '0.4.0'
__author__ = 'Silvia Barbiero, Michael Stadler, Charlotte Soneson'


Expand Down Expand Up @@ -175,10 +175,10 @@ def __init__(self, path: str,
self.ndim = self.array_dict[list(self.array_dict.keys())[0]].ndim
self.label_names = []
if 'labels' in list(self.zarr_group.group_keys()):
self.label_names = [x for x in self.zarr_group.labels.group_keys()]
self.label_names = [x for x in self.zarr_group['labels'].group_keys()]
self.table_names = []
if 'tables' in list(self.zarr_group.group_keys()):
self.table_names = [x for x in self.zarr_group.tables.group_keys()]
self.table_names = [x for x in self.zarr_group['tables'].group_keys()]

if not skip_checks:
# make sure that it does not contain any further groups
Expand All @@ -190,7 +190,7 @@ def __init__(self, path: str,
raise ValueError(f"{self.path} does not contain a 'multiscales' attribute")
# ... load multiscales dictionaries
self.multiscales_image: dict[str, Any] = self._load_multiscale_info(self.zarr_group, skip_checks)
self.multiscales_labels: dict[str, dict[str, Any]] = {x: self._load_multiscale_info(self.zarr_group.labels[x], skip_checks) for x in self.label_names}
self.multiscales_labels: dict[str, dict[str, Any]] = {x: self._load_multiscale_info(self.zarr_group['labels'][x], skip_checks) for x in self.label_names}
# ... extract pyramid levels by decreasing resolution
self.pyramid_levels_image: list[str] = Image._extract_paths_by_decreasing_resolution(self.multiscales_image['datasets'])
self.pyramid_levels_labels: dict[str, list[str]] = {x: Image._extract_paths_by_decreasing_resolution(self.multiscales_labels[x]['datasets']) for x in self.label_names}
Expand Down
Loading