Skip to content

Commit

Permalink
major metadata refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzocerrone committed Sep 18, 2024
1 parent 10355b4 commit 7572c1f
Show file tree
Hide file tree
Showing 7 changed files with 661 additions and 802 deletions.
4 changes: 2 additions & 2 deletions src/ngio/core/image_like_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from ngio.io import StoreOrGroup, open_group
from ngio.ngff_meta import (
FractalImageMeta,
ImageMeta,
PixelSize,
SpaceUnits,
get_ngff_image_meta_handler,
Expand Down Expand Up @@ -71,7 +71,7 @@ def group(self) -> zarr.Group:
return self._group

@property
def metadata(self) -> FractalImageMeta:
def metadata(self) -> ImageMeta:
"""Return the metadata of the image."""
return self._metadata_handler.load_meta()

Expand Down
4 changes: 2 additions & 2 deletions src/ngio/ngff_meta/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""IO and validation of NGFF metadata."""

from ngio.ngff_meta.fractal_image_meta import FractalImageMeta, PixelSize, SpaceUnits
from ngio.ngff_meta.fractal_image_meta import ImageMeta, PixelSize, SpaceUnits
from ngio.ngff_meta.meta_handler import get_ngff_image_meta_handler

__all__ = ["get_ngff_image_meta_handler", "FractalImageMeta", "PixelSize", "SpaceUnits"]
__all__ = ["get_ngff_image_meta_handler", "ImageMeta", "PixelSize", "SpaceUnits"]
Loading

0 comments on commit 7572c1f

Please sign in to comment.