Skip to content

Adds chunk key encoding to kwargs passed to zarr #10274

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

Merged
merged 15 commits into from
Jun 10, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 29, 2025
commit 471061cea0cd1135e18b1218ebce557119e1fe4a
3 changes: 2 additions & 1 deletion xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -3664,10 +3664,11 @@ def create_zarr_target(self):
def test_chunk_key_encoding(self) -> None:
try:
from zarr.core.chunk_key_encodings import V2ChunkKeyEncoding

encoding = V2ChunkKeyEncoding(separator="/").to_dict()
except ImportError:
# Fallback for zarr<3
encoding = {'name': 'v2', 'configuration': {'separator': '/'}}
encoding = {"name": "v2", "configuration": {"separator": "/"}}

# Create a dataset with a variable name containing a period
data = np.ones((4, 4))
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy