Skip to content

Commit

Permalink
pass datasets to write_multiscales_metadata()
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Jan 25, 2022
1 parent adbe8f5 commit de7703a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/omero_zarr/raw_pixels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit de7703a

Please sign in to comment.