home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 906723769

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-906723769 https://api.github.com/repos/pydata/xarray/issues/5654 906723769 IC_kwDOAMm_X842C4G5 2190658 2021-08-26T20:33:39Z 2021-08-26T20:33:39Z MEMBER

Third and final issue is when numpy.broadcast_to is applied to the output of zeros_like:

```

import sparse

s = sparse.COO.from_numpy([0, 0, 1, 2])

np.broadcast_to(np.zeros_like(s.todense(), shape=()), (3, ))

array([0, 0, 0])

np.broadcast_to(np.zeros_like(s, shape=()), (3, ))

ValueError: The data length does not match the coordinates given.

len(data) = 0, but 3 coords specified.

```

This seems like a genuine bug, please file it on our tracker if possible.

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