home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 406959556

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/2245#issuecomment-406959556 https://api.github.com/repos/pydata/xarray/issues/2245 406959556 MDEyOklzc3VlQ29tbWVudDQwNjk1OTU1Ng== 2448579 2018-07-23T07:01:07Z 2018-07-23T07:01:28Z MEMBER

This is because priority_arg=1 in https://github.com/pydata/xarray/blob/b8a342ae845a7d734d391c4b597ee689ed9c6a72/xarray/core/merge.py#L579

So the old co-ordinate (with attrs) is replaced by the new co-ordinate (without attrs).

Example: ds['b'] = xr.DataArray(np.arange(10), dims='y') in the above creates a new dimension y with no attrs that is given priority when merging. This seems like intended behaviour because changing priority_arg to 0 makes a lot of tests fail.

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