Skip to content

Commit

Permalink
Fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Wales committed Sep 18, 2020
1 parent e2fc1cf commit 786a044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/climtas/blocked.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 786a044

Please sign in to comment.