Skip to content

[v3] reimplement / develop Group.info and Array.info properties #2135

Closed
@jhamman

Description

@jhamman

Zarr Python 2 had nice info properties on the Group and Array classes. We haven't built these for v3 yet.

  >>> import zarr
  >>> z = zarr.zeros(1000000, chunks=100000, dtype='i4')
  >>> z.info
  Type               : zarr.core.Array
  Data type          : int32
  Shape              : (1000000,)
  Chunk shape        : (100000,)
  Order              : C
  Read-only          : False
  Compressor         : Blosc(cname='lz4', clevel=5, shuffle=SHUFFLE, blocksize=0)
  Store type         : zarr.storage.KVStore
  No. bytes          : 4000000 (3.8M)
  No. bytes stored   : 320
  Storage ratio      : 12500.0
  Chunks initialized : 0/10

Reference to stub in v3:

async def info(self) -> None:
raise NotImplementedError

Metadata

Metadata

Assignees

No one assigned

    Labels

    good-first-issueGood place to get started as a new contributor.help wantedIssue could use help from someone with familiarity on the topic

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions