-
Notifications
You must be signed in to change notification settings - Fork 3
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
Failure to inline #26
Comments
Thanks for reporting this. Not totally sure, but I suspect the behavior difference is because currently Interestingly |
Thanks for the reproducible example - I managed to run it fine to see what is going on. As Tom says, Cubed is not seeing the raw Zarr file. If Cubed's
This in itself wouldn't be a problem, but the selection (indexing) is implemented uses a Cubed For simple slices like these we could implement indexing using a simple |
Thanks Toms! Thoughts on the best place in the stack to fix this? For context, this is a killer application for cubed: fast, serverless subsetting of big Zarr datasets. |
Sounds like this would fix your use case Ryan, and it's an optimization in cubed that should be done anyway.
Presumably we can't just bypass the |
I've created a fix in cubed-dev/cubed#586, which I ran against your example @rabernat and it fuses as expected now: I'll merge it later, and I could do a release too if that's helpful. |
This is as minimal as I could make this. I can't reproduce it by just creating arrays from scratch, has to be loaded from real data afaict.
Just cubed, without xarray
As you can see, the "from_zarr" and "getitem" get inlined into a single task. Good
Now with Xarray
No inline, twice the number of tasks.
The text was updated successfully, but these errors were encountered: