Repository navigation
Check and compare shapes in assert_eq - #2101
Merged
Merged
Conversation
Seems that shape comparison only occurred on the result of computing the Dask array. In our case, we found the Dask array itself had the wrong shape, but the computed result had the right shape. To fix this we add a comparison of the shapes before computation occurs. This happens in addition to the existing test comparing the shapes afterwards.
Merged
As an extra check of the shape, make sure the shape hasn't changed between the Dask and the computed result. Have seen this occur in some cases as well while working on other code. So this should show some of these issues and help avoid them cropping up in the future.
Member
|
Merging this soon if there are no further comments |
Member
Author
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add some checks for shapes in
assert_eq. Particularly compare shapes before computing results and compare shapes between dask arrays and computed results.