Skip to content

Pass use_zarr_fill_value_as_mask through open_dataset - #11748

Merged
headtr1ck merged 1 commit into
pydata:mainfrom
vsaraikin:zarr-fill-value-mask
Oct 17, 2026
Merged

headtr1ck merged 1 commit into
pydata:mainfrom
vsaraikin:zarr-fill-value-mask

Conversation

@vsaraikin

Copy link
Copy Markdown
Contributor

Description

ZarrBackendEntrypoint.open_dataset passed use_zarr_fill_value_as_mask=None to ZarrStore.open_group instead of the user's value, so open_dataset/open_zarr always fell back to the per-format default. With zarr v3 there was no way to mask the zarr fill_value. test_zarr_fill_value_setting passed False, which was ignored, so I dropped it to keep the test checking the same thing. The second part of the issue was fixed in #11345, and #11663 does the same for open_datatree.

Checklist

AI Disclosure

  • This PR contains AI-generated content, which I tested and reviewed. Tools: Claude Code

@welcome

welcome Bot commented Oct 16, 2026

Copy link
Copy Markdown

Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient.
If you have questions, some answers may be found in our contributing guidelines.

Co-authored-by: Claude <noreply@anthropic.com>
@vsaraikin
vsaraikin force-pushed the zarr-fill-value-mask branch from f55a3d8 to eacf350 Compare October 16, 2026 14:33
@github-actions github-actions Bot added topic-backends topic-zarr Related to zarr storage library io labels Oct 16, 2026

@headtr1ck headtr1ck left a comment

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.

Thanks!

@headtr1ck headtr1ck added the plan to merge Final call for comments label Oct 16, 2026
@headtr1ck
headtr1ck merged commit a432f78 into pydata:main Oct 17, 2026
59 checks passed
headtr1ck added a commit to anshurajbisoyi98-ctrl/xarray that referenced this pull request Oct 17, 2026
The merge of main dropped the whats-new entries of pydata#11736 and pydata#11722.
Combine this PR's entry with the one of pydata#11748, which fixed the same
option for open_dataset, and mention all openers in the user guide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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-zarr Related to zarr storage library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use_zarr_fill_value_as_mask=True is ignored in open_zarr

2 participants