Skip to content
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

Upgrade xarray.to_icechunk #633

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

Upgrade xarray.to_icechunk #633

wants to merge 23 commits into from

Conversation

dcherian
Copy link
Contributor

@dcherian dcherian commented Jan 27, 2025

  1. Supports region="auto"
  2. Support writing DataArrays
  3. support safe_chunks

Closes #606
xref pydata/xarray#9990

@@ -0,0 +1,366 @@
#### Delete this when Xarray 2025.02.0 is out
Copy link
Contributor Author

Choose a reason for hiding this comment

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

blind copy of pydata/xarray#9990

@dcherian dcherian changed the title Support region="auto" in to_xarray Support region="auto" in xarray.to_icechunk Jan 27, 2025
@dcherian dcherian changed the title Support region="auto" in xarray.to_icechunk Upgrade xarray.to_icechunk Jan 27, 2025
@@ -81,8 +80,6 @@ class XarrayDatasetWriter:
store: IcechunkStore = field(kw_only=True)

safe_chunks: bool = field(kw_only=True, default=True)
# TODO: uncomment when Zarr has support
# write_empty_chunks: bool = field(kw_only=True, default=True)
Copy link
Contributor Author

@dcherian dcherian Jan 27, 2025

Choose a reason for hiding this comment

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

This is now deprecated, and users are supposed to set it in the Zarr config. So we don't need the kwarg

@dcherian dcherian marked this pull request as ready for review January 27, 2025 19:55
@dcherian dcherian requested a review from jhamman January 27, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

icechunk.xarray.to_icechunk does not support region="auto"
1 participant