Description
Hi there, and thanks for your support.
We (me and @mfranzon) encountered some issues while trying to reproduce the behavior of #57 (comment), that is, to visualize (in napari) a zarr file which includes a single well with several fields of view.
Our zarr file contains a HCS dataset, structured as in #57 (comment). There is only one well, which includes four fields of view. Upon loading the file in napari, logs show that
11:58:12 DEBUG creating lazy_reader. row:0 col:0
11:58:12 DEBUG creating lazy_reader. row:0 col:1
11:58:12 DEBUG creating lazy_reader. row:1 col:0
11:58:12 DEBUG creating lazy_reader. row:1 col:1
which is the expected behavior (placing the four fields on a 2x2 grid, as in https://github.com/ome/ome-zarr-py/blob/master/ome_zarr/reader.py#L407-L410). However, the tile_path
function in reader.py
is defined as
def get_tile_path(self, level: int, row: int, col: int) -> str:
return (
f"{self.row_names[row]}/"
f"{self.col_names[col]}/{self.first_field}/{level}"
)
where the field is strictly equal to self.first_field
, which is equal to "0"
.
We are missing something, here, because it seems that the reader will never load any field which is not the first one.
Is there a way to show the four fields together, on a 2x2 grid (as in #57 (comment))?