home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1306498356

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/pull/7229#issuecomment-1306498356 https://api.github.com/repos/pydata/xarray/issues/7229 1306498356 IC_kwDOAMm_X85N35U0 39069044 2022-11-08T01:45:59Z 2022-11-08T01:45:59Z CONTRIBUTOR

The latest commit should do what we want, consistently taking attrs of x. Casting to DataArray along with the explicit broadcast operation gets us empty attrs on both the variable and the coords.

The only way it deviates from this (spelled out in the tests) is to pull coord attrs from x, then y, then cond if any of these are scalars. I think this makes sense because if I pass [DataArray, scalar, scalar] for example I wouldn't expect it to drop the coordinate attrs.

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