8000 Read multiple fields of view on a grid, for HCS dataset · Issue #200 · ome/ome-zarr-py · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Read multiple fields of view on a grid, for HCS dataset #200
Open
@tcompa

Description

@tcompa

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))?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0