Skip to content

Array.info does not show the name of codecs #2649

@jhamman

Description

@jhamman

Zarr version

3.0.0-rc.1

Numcodecs version

0.14.1

Python Version

3.12

Operating System

Linux

Installation

pip

Description

Looking at the output from Array.info, I'm noticing that we are not showing the name of the codecs. This seems like an important bit of information that should be part of the output of info.

Steps to reproduce

import zarr
import numpy as np

# Create a 2D Zarr array
z = zarr.create_array(
   store="data/example-1.zarr",
   shape=(100, 100),
   chunks=(10, 10),
   dtype="f4"
)

# Assign data to the array
z[:, :] = np.random.random((100, 100))
z.info
Type               : Array
Zarr format        : 3
Data type          : DataType.float32
Shape              : (100, 100)
Chunk shape        : (10, 10)
Order              : C
Read-only          : False
Store type         : LocalStore
Codecs             : [{'endian': <Endian.little: 'little'>}, {'level': 0, 'checksum': False}]
No. bytes          : 40000 (39.1K)

Additional output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPotential issues with the zarr-python library

    Type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions