Skip to content
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

sdata does not save when chunks are not equal #581

Open
lotte-vandevreken opened this issue Jun 12, 2024 · 0 comments
Open

sdata does not save when chunks are not equal #581

lotte-vandevreken opened this issue Jun 12, 2024 · 0 comments

Comments

@lotte-vandevreken
Copy link

When trying to save the sdata to .zarr, it gives an error when the chunks are not equal (for example after cropping the sdata with the bounding_box_query function). The error was fixed after running sdata[image].data = sdata[image].data.rechunk() and sdata[label].data = sdata[label].data.rechunk() for all images and labels.

Maybe this could be added as an extra option to the sdata.write function?

cc. @giovp @lopollar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant