issues: 1193704369
This data as json
| id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1193704369 | I_kwDOAMm_X85HJnux | 6444 | xr.where with scalar as second argument fails with keep_attrs=True | 2448579 | closed | 0 | 1 | 2022-04-05T20:51:18Z | 2022-04-12T02:12:39Z | 2022-04-12T02:12:39Z | MEMBER | What happened?``` python import xarray as xr xr.where(xr.DataArray([1, 2, 3]) > 0, 1, 0) ``` fails with
IndexError: list index out of range ``` The workaround is to pass What did you expect to happen?No response Minimal Complete Verifiable ExampleNo response Relevant log outputNo response Anything else we need to know?No response Environmentxarray 2022.3.0 |
{
"url": "https://api.github.com/repos/pydata/xarray/issues/6444/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |