Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jhamman opened this issue Jan 4, 2025 · 3 comments
Closed

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

jhamman opened this issue Jan 4, 2025 · 3 comments
Labels
bug Potential issues with the zarr-python library
Milestone

Comments

@jhamman
Copy link
Member

jhamman commented Jan 4, 2025

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

@jhamman jhamman added the bug Potential issues with the zarr-python library label Jan 4, 2025
@jhamman jhamman added this to the After 3.0.0 milestone Jan 4, 2025
@d-v-b
Copy link
Contributor

d-v-b commented Jan 4, 2025

will users creating arrays with create_array know what codecs means? see #2633

@jhamman
Copy link
Member Author

jhamman commented Jan 4, 2025

Perhaps not, but we can teach them. But regardless of how we present it, we should include the name of the thing (e.g. zstd, blosc, etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Potential issues with the zarr-python library
Projects
Status: Done
Development

No branches or pull requests

3 participants