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/7362#issuecomment-1341826211,https://api.github.com/repos/pydata/xarray/issues/7362,1341826211,IC_kwDOAMm_X85P-qSj,38434768,2022-12-08T01:04:22Z,2022-12-08T01:04:22Z,NONE,"Great, thank you! We're actually planning to removing the `set_options` that triggered the edge case here in geocat-comp, but I still think the check in #7364 is useful and might save someone else (possibly me again 😆 ) in the future some trouble.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1478060173 https://github.com/pydata/xarray/issues/7362#issuecomment-1341818601,https://api.github.com/repos/pydata/xarray/issues/7362,1341818601,IC_kwDOAMm_X85P-obp,39069044,2022-12-08T00:54:26Z,2022-12-08T00:54:26Z,CONTRIBUTOR,"So many edge cases and different ways to use this function! I'm also a bit surprised `numpy`-only inputs work here, but if it does, we may as well support it. #7364 would be an easy way to handle this case.","{""total_count"": 1, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 1, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1478060173 https://github.com/pydata/xarray/issues/7362#issuecomment-1340034181,https://api.github.com/repos/pydata/xarray/issues/7362,1340034181,IC_kwDOAMm_X85P30yF,38434768,2022-12-06T21:29:37Z,2022-12-06T21:29:37Z,NONE,"@dcherian That's a fair point. The function we wrote is supposed to support numpy and xarray input, and previously it was easier to use `xr.where()` for both cases instead of checking for input type repeatedly. I just walked through my debugger with one of my failing tests and yes, it does appear that `apply_ufunc` is returning numpy output for all numpy input. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1478060173 https://github.com/pydata/xarray/issues/7362#issuecomment-1338829062,https://api.github.com/repos/pydata/xarray/issues/7362,1338829062,IC_kwDOAMm_X85PzOkG,2448579,2022-12-06T06:22:10Z,2022-12-06T06:22:10Z,MEMBER,"Thanks for the clear bug report! `b = xr.where(a < 5, a, b)` If the inputs are all numpy, you should be using `np.where`. We could raise a nicer error here. But I'm not sure how it worked earlier. Des `apply_ufunc` return numpy output for all numpy inputs? ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1478060173