Skip to content

Use zarr-python default open mode when opening arrays#10430

Closed
dstansby wants to merge 1 commit intopydata:mainfrom
dstansby:zarr-open-mode
Closed

Use zarr-python default open mode when opening arrays#10430
dstansby wants to merge 1 commit intopydata:mainfrom
dstansby:zarr-open-mode

Conversation

@dstansby
Copy link
Copy Markdown
Contributor

This is an experimental PR, aimed a fixing errors in the upstream CI (e.g., see https://github.com/pydata/xarray/actions/runs/15646254224/job/44084198866) caused by (the unreleased) zarr-developers/zarr-python#3068.

Instead of defaulting to opening an array with mode='r', if not specified this defers choice of the mode to the default in zarr-python. In zarr-python 3 the default is mode='a', which avoids issues around requesting a read-only array from a writeable store.

@dstansby dstansby closed this by deleting the head repository Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

io topic-backends topic-zarr Related to zarr storage library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants