From 5848f7b49dee5bf6a17dd8b3116383ac65a94368 Mon Sep 17 00:00:00 2001 From: William Moore Date: Thu, 22 Oct 2020 21:26:10 +0100 Subject: [PATCH] Add 'plates' metadata to layers in napari --- ome_zarr/reader.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ome_zarr/reader.py b/ome_zarr/reader.py index 7c77c7ab..cfce3721 100644 --- a/ome_zarr/reader.py +++ b/ome_zarr/reader.py @@ -463,6 +463,14 @@ def get_lazy_plane(level: int, z: int, c: int, t: int) -> da.core.Array: node.data = pyramid # Use the first image's metadata for viewing the whole Plate node.metadata = image_node.metadata + node.metadata.update({ + "metadata": { + "plate": { + "rows": rows, + "columns": cols, + } + } + }) class Reader: