You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to concatenate arrays with different shapes. They should have the size in each dimension except for the one we are concatenating along (e.g. numpy concatenation rules).
Why doesn't concatenate_arrays work in this case right now, and what would it take to work?
The current restriction of "same size" doesn't seem to be working (#304), but also the current documented restrictions don't seem accurate. For example, these arrays have the same size and chunking:
This broadly makes sense to me, due to a chunk boundary not aligning with the end of the first array. Is that resolvable without ZEP 3?
This is exactly right, and the reason for ZEP3 to exist.
And otherwise, should an additional restriction on concatenate_arrays be: (shape % chunks) == 0 for dimensions being concatenated along?
Yes, except the very last one, I suppose. Concatenating files that have whole chunks but a different number of chunks along sime concat dimension should be ok. I'm pretty sure we've done this, where chunksize was 24 (hours per day) but number of chunks was variable (days per month).
should an additional restriction on concatenate_arrays be: (shape % chunks) == 0 for dimensions being concatenated along?
Yes, except the very last one, I suppose.
I would like to be able to concatenate arrays with different shapes. They should have the size in each dimension except for the one we are concatenating along (e.g. numpy concatenation rules).
Why doesn't concatenate_arrays work in this case right now, and what would it take to work?
The current restriction of "same size" doesn't seem to be working (#304), but also the current documented restrictions don't seem accurate. For example, these arrays have the same size and chunking:
However
concatenate_arrays
produces invalid results:This broadly makes sense to me, due to a chunk boundary not aligning with the end of the first array. Is that resolvable without ZEP 3?
And otherwise, should an additional restriction on
concatenate_arrays
be:(shape % chunks) == 0
for dimensions being concatenated along?The text was updated successfully, but these errors were encountered: