home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 812868025

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/4796#issuecomment-812868025 https://api.github.com/repos/pydata/xarray/issues/4796 812868025 MDEyOklzc3VlQ29tbWVudDgxMjg2ODAyNQ== 14808389 2021-04-03T13:49:25Z 2021-04-03T13:49:25Z MEMBER

the issue is that we pass *args and **kwargs unmodified to dask, which obviously won't work (if isinstance(x.data, np.ndarray) == True it will be casted to numpy using asarray, which is why that succeeds).

I think this means that we should check for xarray objects in args / kwargs in {DataArray,Dataset,Variable}._unary_op and extract the data before calling f (which might be easier to implement if we stop injecting numpy methods).

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