bug when passing boolean weights to weighted mean <!-- A short summary of the issue, if appropriate --
bug when passing boolean weights to weighted mean <!-- A short summary of the issue, if appropriate --: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). dta = xr.DataArray( 1., 1., 1. ) wgt = xr.DataArray(np.array( 1, 1, 0 , dtype=np.bool))
The task
dta = xr.DataArray([1., 1., 1.]) wgt = xr.DataArray(np.array([1, 1, 0], dtype=np.bool))
Part of Lego-X/Lego-RL-SWE-Bench-Verified.