-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
test_rolling_wrapped_dask is failing with dask-master #2940
Comments
I have no idea yet... |
Sent a fix |
Looking into this in more detail, the fix looks somewhat non-trivial. For example, we definitely are not padding by enough inside xarray/xarray/core/dask_array_ops.py Line 29 in 145f25f
I'm not sure if this was ever tested properly, at least for dask arrays with multiple chunks. My guess is that this previously worked by consolidating dask arrays into a single chunk, which would simply fail for arrays that are larger than fit into memory. For now, I think it would be safest to issue a new release that simply disables rolling() methods on dask arrays (by raising an error), and to save a full fix for later. I am concerned about letting the current behavior stick around, which silently calculates the wrong result. |
@shoyer - yeah, I'd tend to agree. I had to do a bit of digging when I encountered this problem, because I was getting serialization errors (since it was doing away with the chunks on massive arrays) that I then eventually connected to this |
#3040 is my preferred fix for the rolling window issue. I plan to merge it sometime tomorrow unless I get any comments.... |
The
test_rolling_wrapped_dask
tests intest_dataarray.py
are failing with dask master, e.g., as seen here:https://travis-ci.org/pydata/xarray/jobs/527936531
I reproduced this locally.
git bisect
identified the culprit as dask/dask#4756.The source of this issue on the xarray side appears to be these lines:
xarray/xarray/core/rolling.py
Lines 287 to 291 in dd99b7d
In particular, we are currently
padded
as an xarray.DataArray object, not a dask array. Changing this topadded.data
shows that passing an actual dask array todask_array_ops.rolling_window
results in failing tests.@fujiisoup @jhamman any idea what's going on here?
The text was updated successfully, but these errors were encountered: