issues: 565626748
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
565626748 | MDU6SXNzdWU1NjU2MjY3NDg= | 3770 | `where` ignores incorrectly typed arguments | 5635139 | closed | 0 | 5 | 2020-02-15T00:24:37Z | 2020-03-07T04:38:12Z | 2020-03-07T04:38:12Z | MEMBER | MCVE Code SampleI optimistically tried passing a lambda to ```python In [1]: import xarray as xr In [2]: import numpy as np In [3]: da = xr.DataArray(np.random.rand(2,3)) In [4]: da.where(da > 0.5) this should fail!In [5]: da.where(lambda x: x > 0.5) Expected OutputRaise a * (maybe that could work, but separate discussion) Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3770/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |