Repository navigation
Keep chunksize consistent in reshape - #11273
Conversation
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 13 files ± 0 13 suites ±0 3h 1m 57s ⏱️ + 8m 21s For more details on these failures, see this check. Results for commit 19eb9ad. ± Comparison against base commit ed5f688. ♻️ This comment has been updated with latest results. |
|
Oh yeah 10603 is fixed now, added this as a test. The other one is probably already fixed for a while now |
…e-chunksize # Conflicts: # dask/array/tests/test_array_core.py
…e-chunksize # Conflicts: # dask/array/tests/test_array_core.py
| # It's important to ensure that all dimensions before the dimension | ||
| # we adjust have to have all-1 chunks to respect C contiguous arrays | ||
| # during the reshaping |
There was a problem hiding this comment.
Honestly, I'm not sure I'm following.
There was a problem hiding this comment.
I added an example of the negative case
| # This is a trivial case, when we arrive here is the chunk we are | ||
| # splitting of length 1 and all previous chunks that are reshaped |
There was a problem hiding this comment.
How can we split a chunk of length 1?
There was a problem hiding this comment.
bad wording, we only have one chunk along this dimension is what I wanted to say , i.e. if this dimension has length 100 then our chunk size on this dimension is 100 as well. I'll update the docstring
| ), | ||
| ] | ||
| result_in = _smooth_chunks(ileft, ii, 6, result_inchunks) | ||
| expected_in = [(1, 1, 1, 2, 1, 1, 1, 2), (6,), (3, 3)] |
There was a problem hiding this comment.
Wouldn't we expect dim 0 to be split into all ones?
There was a problem hiding this comment.
thx for catching this, not sure why I thought this was ok. I hard-coded splitting these chunks by a factor of 2 at most, It's fixed now
Co-authored-by: Hendrik Makait <[email protected]>
Co-authored-by: Hendrik Makait <[email protected]>
hendrikmakait
left a comment
There was a problem hiding this comment.
Thanks, @phofl! I have a few nits regarding the documentation, but these are non-blocking. The comments are very much appreciated!
Co-authored-by: Hendrik Makait <[email protected]>
Co-authored-by: Hendrik Makait <[email protected]>
Co-authored-by: Hendrik Makait <[email protected]>
Co-authored-by: Hendrik Makait <[email protected]>
pre-commit run --all-filescc @dcherian