home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 628616379

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-628616379 https://api.github.com/repos/pydata/xarray/issues/4055 628616379 MDEyOklzc3VlQ29tbWVudDYyODYxNjM3OQ== 56925856 2020-05-14T12:57:21Z 2020-05-14T17:50:31Z CONTRIBUTOR

Nice, that's neater! Would this work, in the maybe_chunk() call? Sorry about the basic questions!

python def maybe_chunk(name, var, chunks): chunks = selkeys(chunks, var.dims) if not chunks: chunks = None if var.ndim > 0: # when rechunking by different amounts, make sure dask names change # by provinding chunks as an input to tokenize. # subtle bugs result otherwise. see GH3350 token2 = tokenize(name, token if token else var._data, chunks) name2 = f"{name_prefix}{name}-{token2}" try: return var.chunk(chunks, name=name2, lock=lock) except NotImplementedError as err: raise Exception("Automatic chunking fails for object arrays." + "These include cftime DataArrays.") else: return var

{
    "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.709ms · About: xarray-datasette