home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 844104261

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/5342#issuecomment-844104261 https://api.github.com/repos/pydata/xarray/issues/5342 844104261 MDEyOklzc3VlQ29tbWVudDg0NDEwNDI2MQ== 2448579 2021-05-19T13:25:25Z 2021-05-19T13:25:25Z MEMBER

Thanks. This is a new test.

Here's where the error is triggered: https://github.com/pydata/xarray/blob/f3794ab1a75560f797b824c8c2d434aa65e7dd7d/xarray/core/dask_array_ops.py#L69-L73

We should specify both dtype and meta in the map_* calls like this:

python pushed = array.map_blocks(push, axis=axis, n=n, dtype=array.dtype, meta=array._meta) if len(array.chunks[axis]) > 1: pushed = pushed.map_overlap( push, axis=axis, n=n, depth={axis: (1, 0)}, boundary="none", dtype=array.dtype, meta=array._meta )

Can you send in a PR please?

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