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.
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
Test chunking (including Hypothesis tests) #57
Test chunking (including Hypothesis tests) #57
Changes from 19 commits
7879749
588451e
1716d57
731f6f1
ae91eb5
6f4359f
f652bfd
fd69d10
1379ac3
2fd7192
ce32da4
7d248d1
68df0f2
0ccce21
f04edcf
2d022a2
9979379
f0baec4
932c0ee
6ab521a
c957a6d
3cc2c11
ef11c86
5b173a6
6fc4161
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Might be nice to also test
dims=
andweights=
with Hypothesis. It can be nice to throw all the possible axes of variation into a Hypothesis test as an easy way to check all possible cases, without having to write as many individual tests.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.
What exactly do you mean? If I make the
test_all_chunking_patterns_dd_hist
accept adims
(orreduce_axes
) argument then I also need anp.histogramdd
function that can handle that generality. Is there a quick way to achieve that in the test? Possibly withnp.apply_over_axes
?For the weights then I guess I could pass weights and allow the data and weights to have different chunking patterns - is that what you meant?
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.
Yeah, I suppose it's trickier to test that, since you'd need something to do N-D histograms (xhistogram) to verify the results.
I suppose you could just compare against
histogram
of the computed (NumPy) arrays, and make it purely a test of the dask functionality. If we're confident the NumPy code paths are well-tested, that seems reasonable to me.But it was just a thought; I think the tests here are already quite good, so fine to leave it as-is too.