Commit bc33fda
* explicitly cast the dtype of `condition` to `bool`
* cast `condition` to bool in every case for `where`
* don't pass a `DataArray` to `where`
* use strings to specify the dtype for backwards compat
* revert the strings and instead ignore the warning
* typo
* restrict to just numpy
* unrestrict
* fall back to `xp.bool_` if `xp.bool` doesn't exist
* unskip the `where` test
* reverse to avoid warnings
* remove the outdated ignore
---------
Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
1 parent 1e1938f commit bc33fda
File tree
3 files changed
+18
-9
lines changed- xarray
- core
- tests
3 files changed
+18
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
229 | 232 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
| |||
373 | 376 | | |
374 | 377 | | |
375 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
376 | 386 | | |
377 | 387 | | |
378 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
| 527 | + | |
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
| |||
0 commit comments