pydata__xarray-7229
`xr.where(..., keep_attrs=True)` overwrites coordinate attributes
Verdict: the issue points to the file or function that was changed (Tier B).
New one looks like this: ```python # keep the attributes of x, the second parameter, by default to # be consistent with the `where` method of `DataArray` and `Dataset` keep_attrs = lambda attrs, context: getattr(x, "attrs", {}) ```
The two checks disagreed (stated fix vs. points to it); the lower reading shown: “New one looks like this: ```python # keep the attributes of x, the second parameter, by default to # be consistent with the `where` method of `DataAr…”
All SWE-bench Verified tasks · more pydata/xarray tasks · How the check works