home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1311899371

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/7280#issuecomment-1311899371 https://api.github.com/repos/pydata/xarray/issues/7280 1311899371 IC_kwDOAMm_X85OMf7r 14808389 2022-11-11T16:11:12Z 2022-11-11T16:11:12Z MEMBER

the reason that's failing is that scipy.sparse.coo_array does not implement __array_function__ or __array_namespace__. As soon as that's the case I'd expect it to work.

In fact, setting s.__array_namespace__ = lambda x: x will result in xr.DataArray(s) printing as <xarray.DataArray (dim_0: 4, dim_1: 4)> <4x4 sparse array of type '<class 'numpy.float64'>' with 4 stored elements in COOrdinate format> Dimensions without coordinates: dim_0, dim_1 which I think is what you were after? Though of course that does not mean that we can actually use it...

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