Skip to content

Commit

Permalink
Update groupby.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Nov 6, 2021
1 parent c4c4023 commit 445312d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions asv_bench/benchmarks/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def setup(self, *args, **kwargs):
self.ds1d = xr.Dataset(
{
"a": xr.DataArray(np.r_[np.arange(300), np.arange(300)]),
"b": xr.DataArray(np.arange(500)),
"b": xr.DataArray(np.arange(600)),
}
)
self.ds2d = self.ds1d.expand_dims(z=10)
Expand All @@ -35,8 +35,8 @@ class GroupByDask(GroupBy):
def setup(self, *args, **kwargs):
requires_dask()
super().setup(**kwargs)
self.ds1d = self.ds1d.sel(dim_0=slice(250)).chunk({"dim_0": 50})
self.ds2d = self.ds2d.sel(dim_0=slice(250)).chunk({"dim_0": 50, "z": 4})
self.ds1d = self.ds1d.sel(dim_0=slice(150)).chunk({"dim_0": 50})
self.ds2d = self.ds2d.sel(dim_0=slice(150)).chunk({"dim_0": 50, "z": 4})


class GroupByDataFrame(GroupBy):
Expand Down

0 comments on commit 445312d

Please sign in to comment.