From de7703abb4088de8474a5f7e4609235665836365 Mon Sep 17 00:00:00 2001 From: William Moore Date: Tue, 25 Jan 2022 17:41:36 +0000 Subject: [PATCH] pass datasets to write_multiscales_metadata() --- src/omero_zarr/raw_pixels.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/omero_zarr/raw_pixels.py b/src/omero_zarr/raw_pixels.py index 566d633..26b7bab 100644 --- a/src/omero_zarr/raw_pixels.py +++ b/src/omero_zarr/raw_pixels.py @@ -98,9 +98,11 @@ def planeGen() -> np.ndarray: axes = marshal_axes(image) transformations = marshal_transformations(image, len(paths)) - write_multiscales_metadata( - parent, paths, axes=axes, transformations=transformations - ) + datasets: List[Dict[Any, Any]] = [{"path": path} for path in paths] + for dataset, transform in zip(datasets, transformations): + dataset["transformations"] = transform + + write_multiscales_metadata(parent, datasets, axes=axes) return (level_count, axes)