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 and related docs #633

Merged
merged 38 commits into from
Jan 31, 2025
Merged

Upgrade xarray.to_icechunk and related docs #633

merged 38 commits into from
Jan 31, 2025

Conversation

dcherian
Copy link
Contributor

@dcherian dcherian commented Jan 27, 2025

https://icechunk--633.org.readthedocs.build/en/633/icechunk-python/xarray/

  1. Supports region="auto"
  2. Support writing DataArrays
  3. support safe_chunks
  4. updated docs on xarray/dask/distributed write patterns

Closes #606
xref 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
@dcherian dcherian changed the title Upgrade xarray.to_icechunk Upgrade xarray.to_icechunk and related docs Jan 31, 2025
@dcherian dcherian merged commit f2c30ce into main Jan 31, 2025
5 checks passed
@dcherian dcherian deleted the region-auto branch January 31, 2025 21:29
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"
4 participants