home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 661050583

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-661050583 https://api.github.com/repos/pydata/xarray/issues/3245 661050583 MDEyOklzc3VlQ29tbWVudDY2MTA1MDU4Mw== 1610850 2020-07-20T13:47:45Z 2020-07-20T13:47:45Z CONTRIBUTOR

Given the current guidance in #4212 is to aim for cupy to mostly be handled via accessors I wonder if xarray could be extended a little further to allow as_ methods to be registered in the same way as accessors.

Currently with the accessor model a user would need to do something like ds.cupy.as_cupy and ds.cupy.as_numpy. When casting a DataSet or DataArray to use cupy under the hood I expect folks would look for a top level as_cupy method. And once it has been cast it would need a cupy specific as_numpy method to be able to cast back.

Enabling accessors to register as_ methods at the top level would really help neaten this up.

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