home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 628513443

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/4055#issuecomment-628513443 https://api.github.com/repos/pydata/xarray/issues/4055 628513443 MDEyOklzc3VlQ29tbWVudDYyODUxMzQ0Mw== 56925856 2020-05-14T09:25:48Z 2020-05-14T09:25:48Z CONTRIBUTOR

Cheers! Just had a look, is it as simple as just changing this line to the following, @dcherian ?

python if isinstance(chunks, Number) or chunks=='auto': chunks = dict.fromkeys(self.dims, chunks)

This seems to work fine in a lot of cases, except automatic chunking isn't implemented for object dtypes at the moment, so it fails if you pass a cftime coordinate, for example.

One option is to automatically use self=xr.decode_cf(self) if the input dataset is cftime? Or could just throw an error.

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