-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add rechunk function #237
base: main
Are you sure you want to change the base?
Add rechunk function #237
Conversation
This function could then be overloaded by wrapping packges.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to allow any sensible definition of chunks
here? I think rechunkeddiskarray takes tuples of chunksize like (10, 10, 3)
for instance...
src/rechunk.jl
Outdated
Rechunk the underlying data of A into the given `chunks`. | ||
|
||
""" | ||
rechunk(data::AbstractDiskArray, chunks::GridChunks) = RechunkedDiskArray(data , chunks) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rechunk(data::AbstractDiskArray, chunks::GridChunks) = RechunkedDiskArray(data, chunks)
just for style
I start wondering if I think we need either a different name or at least a better docstring explaining that no physical rechunking is happening here. |
Yes, i am also wondering whether the name setchunks makes more sense. I could copy the docstring from the YAXArrays.setchunks function and remove the YAXArray specifics.
|
Even |
Fakechunks sounds like it is not chunked at all. But I see your point. pretendchunk And if we rename the function we should also rename the main object because it would be good to have them in accordance. |
This adds a rechunk function which would return a RechunkedDiskArray
This function could then be overloaded by wrapping packages like DimensionalData.
This was discussed in #35 but is not a fix to that but would open up a better workaround.
This would need some tests