Leaklens

pydata__xarray-4687

xr.where not preserving attributes

Verdict: disputed: one of the two checks found quoted evidence (not counted as a flag).

However, even if we pass a `xarray` object with attributes, `xr.where` does not pass `keep_attrs` to `apply_ufunc`. Once it does the attributes will be propagated, but simply adding `keep_attrs=True` seems like a breaking change. Do we need to add a `keep_attrs` kwarg or get the value from `OPTIONS["keep_attrs"]`?

Disputed: one of the two checks found a pointer to the fix, the other found nothing. Not counted as a flag; the quote is on the task page.

All SWE-bench Verified tasks · more pydata/xarray tasks · How the check works