home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 661062797

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/3245#issuecomment-661062797 https://api.github.com/repos/pydata/xarray/issues/3245 661062797 MDEyOklzc3VlQ29tbWVudDY2MTA2Mjc5Nw== 14808389 2020-07-20T14:08:35Z 2020-07-20T14:09:33Z MEMBER

we currently don't really encourage this way of using accessors (especially using too many of these, see https://github.com/pydata/xarray/issues/1080#issuecomment-258582609 and https://github.com/pydata/xarray/issues/1080#issuecomment-258680571), but you can use register_*_accessor to register functions: ```python @xr.register_dataarray_accessor("as_cupy") def _(da): def as_cupy(self, ...): # ... return da

return as_cupy

```

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