issue_comments: 368016521
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/1938#issuecomment-368016521 | https://api.github.com/repos/pydata/xarray/issues/1938 | 368016521 | MDEyOklzc3VlQ29tbWVudDM2ODAxNjUyMQ== | 2190658 | 2018-02-23T14:00:50Z | 2018-02-23T14:04:18Z | MEMBER | Then I would suggest something like the following for hooks (omitting imports): ```python Registered in order of priorityxarray.interfaces.register('DaskArray', lambda ar: isinstance(ar, da.array)) xarray.hooks.register('nansum', 'DaskArray', da.nansum) xarray.interfaces.register('SparseArray', lambda ar: isinstance(ar, sparse.SparseArray)) xarray.hooks.register('nansum', 'SparseArray', sparse.nansum) ``` And then, in code, call the appropriate
If you need help, I'd be willing to give it. :-) But I'm not a user of XArray, so I don't really understand the use-cases or codebase. |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
299668148 |