Skip to content

Consolidated Metadata Not Passed Down #3954

@ilan-gold

Description

@ilan-gold

Zarr version

3.2.1

Numcodecs version

0.16.5

Python Version

3.12

Operating System

Mac

Installation

pip

Description

Consolidated Metadata does not get passed down fully despite being advertised as With nested groups, the consolidated metadata is available on the children, recursively: https://zarr.readthedocs.io/en/latest/user-guide/consolidated_metadata/#usage

Steps to reproduce

# /// script
# requires-python = ">=3.12"
# dependencies = [
#   "zarr[remote]@git+https://github.com/zarr-developers/zarr-python.git@main",
# ]
# ///
#
# This script automatically imports the development branch of zarr to check for issues

import zarr
z = zarr.open_consolidated(zarr.storage.FsspecStore.from_url("https://vitessce-demo-data.storage.googleapis.com/anndata-demos/BALF_VIB-UGent_processed_cleaned.zarr/", read_only=True), mode="r")
assert z["raw"].metadata.consolidated_metadata is not None # passes
assert z["raw"]["varm"].metadata.consolidated_metadata is not None # fails

Additional output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPotential issues with the zarr-python library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions