Skip to content

use numpy dtype exposed by zarr array instead of metadata.data_type #10348

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

d-v-b
Copy link
Contributor

@d-v-b d-v-b commented May 23, 2025

in main the zarr backend uses the zarr_array.metadata.data_type attribute to get the dtype of the zarr array. If the goal is to ultimately get a numpy data type, it's simpler and safer to retrieve the data type from from the dtype attribute of the zarr array. This PR makes that change.

This addresses on of the incompatibilities noted in #10329

@dcherian dcherian added the plan to merge Final call for comments label May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
io plan to merge Final call for comments topic-backends topic-documentation topic-zarr Related to zarr storage library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants