home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 603882831

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/3890#issuecomment-603882831 https://api.github.com/repos/pydata/xarray/issues/3890 603882831 MDEyOklzc3VlQ29tbWVudDYwMzg4MjgzMQ== 10194086 2020-03-25T14:49:08Z 2020-03-25T15:18:29Z MEMBER

In apply_ufunc the signature is determined in

https://github.com/pydata/xarray/blob/009aa66620b3437cf0de675013fa7d1ff231963c/xarray/core/computation.py#L995

and

https://github.com/pydata/xarray/blob/009aa66620b3437cf0de675013fa7d1ff231963c/xarray/core/computation.py#L1013-L1015

Thus, for the given example: python signature = xr.core.computation._UFuncSignature(input_core_dims=[["time"], ["time"]]) signature.to_gufunc_string() returns '(dim0),(dim0)->()'.

So I assume _UFuncSignature (or _UFuncSignature.to_gufunc_string) should take the exclude_dims into account.

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