home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 1849417292

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
1849417292 PR_kwDOAMm_X85X3Qjj 8069 Dataset.chunk() and DataArray.chunk() now set encoding attribute 2466330 closed 0     7 2023-08-14T09:45:19Z 2023-10-14T20:39:06Z 2023-10-14T20:39:05Z CONTRIBUTOR   0 pydata/xarray/pulls/8069
  • [x] Closes #8062
  • [x] Tests added
  • [ ] User visible changes (including notable bug fixes) are documented in whats-new.rst

This PR aims to fix the bug identified in Issue #8062 , where calling the .chunk() function on a DataArray or Dataset would change the chunking of the underlying data, but not change the "chunks" entry in the encoding attribute. This would lead to Datasets that cannot be written to file (zarr) without raising an error. The setting of the encoding attribute via the .chunk() function is part of the expected behavior based on the docstring of Dataset.to_zarr:

Zarr chunks are determined in the following way: - From the chunks attribute in each variable's encoding (can be set via Dataset.chunk).

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/8069/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 2 rows from issues_id in issues_labels
  • 0 rows from issue in issue_comments
Powered by Datasette · Queries took 0.805ms · About: xarray-datasette