Utilities (ome_zarr.utils
)
Utility methods for ome_zarr access.
- ome_zarr.utils.download(input_path: str, output_dir: str = '.') None
Download an OME-Zarr from the given path.
All
Nodes
that are found from the given path will be included in the download.
- ome_zarr.utils.info(path: str, stats: bool = False) Iterator[Node]
Print information about an OME-Zarr fileset.
All
Nodes
that are found from the given path will be visited recursively.
- ome_zarr.utils.strip_common_prefix(parts: List[List[str]]) str
Find and remove the prefix common to all strings.
Returns the last element of the common prefix. An exception is thrown if no common prefix exists.
>>> paths = [["a", "b"], ["a", "b", "c"]] >>> strip_common_prefix(paths) 'b' >>> paths [['b'], ['b', 'c']]