Skip to content

Commit

Permalink
Add ids
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl committed Aug 14, 2024
1 parent 9660f60 commit 6da5cf7
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions tests/benchmarks/test_xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,18 @@ def group_reduction_client(
@pytest.mark.parametrize(
"func",
[
lambda x: x.groupby("time.month").mean(method="cohorts"),
lambda x: x.groupby("time.month").mean(method="map-reduce"),
lambda x: x.chunk(time=TimeResampler("ME"))
.groupby("time.month")
.mean(method="cohorts"),
pytest.param(
lambda x: x.groupby("time.month").mean(method="cohorts"), id="cohorts"
),
pytest.param(
lambda x: x.groupby("time.month").mean(method="map-reduce"), id="map-reduce"
),
pytest.param(
lambda x: x.chunk(time=TimeResampler("ME"))
.groupby("time.month")
.mean(method="cohorts"),
id="chunked-cohorts",
),
],
)
def test_xarray_groupby_reduction(group_reduction_client, func):
Expand Down

0 comments on commit 6da5cf7

Please sign in to comment.