-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DataArray.rolling fails with chunk size of 1 or 2 #9862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for opening your first issue here at xarray! Be sure to follow the issue template! |
I think this is an upstream dask issue: dask/dask#11580 though clearly we are missing a test. |
I do have a fix on the dask side that should be good to go soon |
The dask pr is merged and will go out with the release today |
Issue has reappeared. Running the example in the initial issue report produces the same error (
As with the OP, error persists when pasted into a new console or binder. |
I've also been still struggling with this issue, but I think I've found what is causing it, as it is indeed Minimal code example
With bottleneckOutput: Env:
Without bottleneckOutput:
Env:
|
Hi @dcherian, do you think this issue should be reopened? Thanks! |
What happened?
I'm hitting the error below when trying to calculate a rolling mean of window length 5 over an
x, y, time
cube of climate data chunked byx, y, 1
.What did you expect to happen?
We would expect the rolling mean to calculate correctly.
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
The issue happens only when chunks are of dimension 1 (as in the example above) or 2, as in the following snippet:
But rechunking to 3 or above, and also -1, computes without error.
The error started happening when I updated by environment. See below.
Possibly related to #4922?
Environment
INSTALLED VERSIONS
commit: None
python: 3.10.16 | packaged by conda-forge | (main, Dec 5 2024, 14:12:04) [Clang 18.1.8 ]
python-bits: 64
OS: Darwin
OS-release: 23.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: ('en_US', 'UTF-8')
libhdf5: 1.14.3
libnetcdf: 4.9.2
xarray: 2024.11.0
pandas: 2.2.3
numpy: 1.26.4
scipy: 1.14.1
netCDF4: 1.7.2
pydap: None
h5netcdf: None
h5py: 3.12.1
zarr: 2.18.3
cftime: 1.6.4
nc_time_axis: None
iris: None
bottleneck: 1.4.2
dask: 2024.12.0
distributed: 2024.12.0
matplotlib: 3.9.3
cartopy: 0.24.0
seaborn: 0.13.2
numbagg: None
fsspec: 2024.10.0
cupy: None
pint: 0.24.4
sparse: None
flox: None
numpy_groupies: None
setuptools: 75.6.0
pip: 24.3.1
conda: installed
pytest: 8.3.4
mypy: 1.13.0
IPython: 8.30.0
sphinx: None
The text was updated successfully, but these errors were encountered: