Skip to content

DOCS: Clarify what mode means in docstring for to_zarr#11229

Open
jsignell wants to merge 1 commit intopydata:mainfrom
jsignell:mode-docstring
Open

DOCS: Clarify what mode means in docstring for to_zarr#11229
jsignell wants to merge 1 commit intopydata:mainfrom
jsignell:mode-docstring

Conversation

@jsignell
Copy link
Copy Markdown
Member

Closes #11159

@github-actions github-actions bot added the topic-DataTree Related to the implementation of a DataTree class label Mar 13, 2026
Copy link
Copy Markdown
Collaborator

@headtr1ck headtr1ck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feel free to add this to whats-new

mode : {"w", "w-", "a", "a-", r+", None}, optional
Persistence mode: "w" means create (overwrite if exists);
Persistence mode:
"w" means create (remove old if exists and write new);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this should be an actual list (see region parameter as example)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah that's a good point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-DataTree Related to the implementation of a DataTree class

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Overwriting zarr using mode='w' converts unmodified data to nan.

2 participants