home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 898932809

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-898932809 https://api.github.com/repos/pydata/xarray/issues/5654 898932809 IC_kwDOAMm_X841lKBJ 2448579 2021-08-14T17:18:56Z 2021-08-14T17:19:04Z MEMBER

This looks like dask.

```python ______ test_chunk ________

@requires_dask
def test_chunk():
    s = sparse.COO.from_numpy(np.array([0, 0, 1, 2]))
    a = DataArray(s)
    ac = a.chunk(2)
    assert ac.chunks == ((2, 2),)
    assert isinstance(ac.data._meta, sparse.COO)
  assert_identical(ac, a)

self = <COO: shape=(2,), dtype=bool, nnz=0, fill_value=False> other = <function _broadcast_trick_inner at 0x7f325aef91f0>

def func(self, other):
    if _disables_array_ufunc(other):
        return NotImplemented
  return ufunc(other, self)

E TypeError: operand type(s) all returned NotImplemented from array_ufunc(<ufunc 'bitwise_and'>, 'call', <function _broadcast_trick_inner at 0x7f325aef91f0>, <COO: shape=(2,), dtype=bool, nnz=0, fill_value=False>): 'curry', 'COO' ```

cc @jrbourbeau

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