home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 537401568

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/3363#issuecomment-537401568 https://api.github.com/repos/pydata/xarray/issues/3363 537401568 MDEyOklzc3VlQ29tbWVudDUzNzQwMTU2OA== 6213168 2019-10-02T08:55:51Z 2019-10-02T08:55:51Z MEMBER

I'd rather transparently invoke data's method instead. This has bonus points considering the variety of NEP18-compatible xarray can now wrap.

python class DataArray: def __getattr__(self, item): try: return getattr(self._variable._data, item) except AttributeError: pass ... although that may cause a lot of not-niceness with methods that return a new array, which will become accidentally un-wrapped. Also unsure how such a system should behave on Dataset (probably shouldn't be there at all).

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