Skip to content

Commit

Permalink
Remove unnecessary rechunk before rolling (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl authored Nov 6, 2024
1 parent fb33a0c commit 4e55efb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/geospatial/workloads/climatology.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ def highlevel_api(
window_weights = create_window_weights(window_size)
half_window_size = window_size // 2
ds = ds.pad(pad_width={"dayofyear": half_window_size}, mode="wrap")
# FIXME: https://github.com/pydata/xarray/issues/9550
ds = ds.chunk(latitude=128, longitude=128)
ds = ds.rolling(dayofyear=window_size, center=True).construct("window")
ds = ds.weighted(window_weights).mean(dim=("window", "year"))
ds = ds.isel(dayofyear=slice(half_window_size, -half_window_size))
Expand Down

0 comments on commit 4e55efb

Please sign in to comment.