-
Notifications
You must be signed in to change notification settings - Fork 14
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
Defer to merge_chunks in special cases of rechunk #282
Comments
This should be possible, but I'm not sure how much this occurs in practice. The only calls to |
It will also happen if an xarray user calls I agree it's not a very common case (though I expect it to come up in the full pangeo vorticity example where we pad then rechunk to merge the padded values back in). |
This is very confusing to me. Isn't a |
That might resolve it for you @dcherian ? Alternatively, the way I have been thinking about this (This also suggests that an equivalent |
#221 introduced
merge_chunks
, a special-case ofrechunk
that can be implemented usingblockwise
. I noticed that whilstreduction
callsmerge_chunks
directly, insideops.rechunk
the primitive rechunk is always called. Shouldn't it be possible forops.rechunk
to check if the user is asking them to perform that special case, and internally dispatch tomerge_chunks
?This also makes me wonder whether there are any other special cases of
rechunk
that could be written usingblockwise
.The text was updated successfully, but these errors were encountered: