diff --git a/src/climtas/blocked.py b/src/climtas/blocked.py index 326dc65..e0863fa 100644 --- a/src/climtas/blocked.py +++ b/src/climtas/blocked.py @@ -542,7 +542,7 @@ def _binary_op(self, other: xarray.DataArray, op) -> xarray.DataArray: # Apply the operation to each year for y, d in self.da.groupby(f"{self.dim}.year"): grouped = self._group_year(d, axis, expand) - result = getattr(grouped, op)(other) + result = getattr(grouped, op)(other.data) blocks.append(self._ungroup_year(d, axis, result)) # Combine back into a timeseries