Skip to content

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
@pp-mo pp-mo deleted the dim_chunking branch February 19, 2025 12:06
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.

2 participants