home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 906621248

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/5654#issuecomment-906621248 https://api.github.com/repos/pydata/xarray/issues/5654 906621248 IC_kwDOAMm_X842CfFA 6213168 2021-08-26T17:56:52Z 2021-08-26T18:02:53Z MEMBER

da.zeros_like(a) internally invokes da.zeros(a.shape, meta=a._meta) which internally invokes np.broadcast(np.zeros_like(a._meta, shape=1), a.shape)

The problem is that sparse.zeros_like does not accept the shape= optional parameter, which is new in numpy 1.17.

This is where it gets triggered: https://github.com/dask/dask/blob/85f0b14bd36a5135ce51aeee067b6207374b00c4/dask/array/wrap.py#L128-L168

I don't think dask should write a workaround to this, and it should be just fixed upstream? CC @jrbourbeau for opinion.

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