home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 386643615

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/2103#issuecomment-386643615 https://api.github.com/repos/pydata/xarray/issues/2103 386643615 MDEyOklzc3VlQ29tbWVudDM4NjY0MzYxNQ== 1217238 2018-05-04T15:49:28Z 2018-05-04T15:49:28Z MEMBER

I think we do both your designs 1 and 2.

One could argue that the implementation would need to happen in dask.array.rechunk

You can actually already write x.rechunk(-1) if x is a dask array, but I overlooked adding support if chunks are specified with a dict (which is what xarray uses). See https://github.com/dask/dask/pull/3469 for the fix.

Add properties to DataArray and Variable, ddims and dshape (happy to hear suggestions about better names), which would return dims and shape as a OrderedDict, just like Dataset.dims and Dataset.shape.

This is exactly what the .sizes property is. So x = x.chunk({dim: x.sizes[dim]}) should already work.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  320104170
Powered by Datasette · Queries took 162.049ms · About: xarray-datasette