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

Load chunking control #108

Merged
merged 1 commit into from
Jan 16, 2025
Merged

Load chunking control #108

merged 1 commit into from
Jan 16, 2025

Conversation

pp-mo
Copy link
Owner

@pp-mo pp-mo commented Jan 15, 2025

Added a rather crude chunking control
- by dimension only, (compare with the altogether more sophisticated facility in Iris)

I'm adding this mostly because it enables a simple workaround to fix
this current problem arising

I think one could argue that this is a shortcoming in Dask, but on re-reading the Dask docs, I'm satisfied that it is really no intention of Dask ever to provide a magic automatic interface which handles cases like this.

So, I'm sure they would say "just give us chunk sizes that make sense", and indeed the error message arising when you attempt to pass chunks="auto" in that case is simply
ValueError: auto-chunking with dtype.itemsize == 0 is not supported, please pass in ``chunks`` explicitly.

@pp-mo pp-mo changed the title Enforce that NcAttribute.value is always an 0- or 1-D array. (#106) Load chunking control Jan 15, 2025
@pp-mo
Copy link
Owner Author

pp-mo commented Jan 15, 2025

Possibly warrants a "how-to" addition also ?

@pp-mo pp-mo merged commit 70f9250 into main Jan 16, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

1 participant