pull_requests: 904410049
This data as json
id | node_id | number | state | locked | title | user | body | created_at | updated_at | closed_at | merged_at | merge_commit_sha | assignee | milestone | draft | head | base | author_association | auto_merge | repo | url | merged_by |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
904410049 | PR_kwDOAMm_X8416DPB | 6461 | closed | 0 | Fix `xr.where(..., keep_attrs=True)` bug | 39069044 | <!-- Feel free to remove check-list items aren't relevant to your change --> - [x] Closes #6444 - [x] Tests added - [x] User visible changes (including notable bug fixes) are documented in `whats-new.rst` Fixes a bug introduced by #4687 where passing a non-xarray object to `x` in `xr.where(cond, x, y, keep_attrs=True)` caused a failure. The `keep_attrs` callable passed to `merge_attrs()` tries to access the attributes of `x` which do not exist in this case. This fix just checks to make sure `x` has attributes, and if not will pass through `keep_attrs=True`. | 2022-04-09T03:02:40Z | 2022-10-25T22:40:15Z | 2022-04-12T02:12:39Z | 2022-04-12T02:12:39Z | 0cd5285c56c5375da9f4d27836ec41eea4d069f3 | 0 | 38ef3b793ffe2cfe58e6f433e0012e16442f2bc3 | 851dadeb0338403e5021c3fbe80cbc9127ee672d | CONTRIBUTOR | 13221727 | https://github.com/pydata/xarray/pull/6461 |
Links from other tables
- 1 row from pull_requests_id in labels_pull_requests