Skip to content
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 dask.array.array_equal #10740

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

bouweandela
Copy link
Contributor

Add the function dask.array.array_equal.

@GPUtester
Copy link
Collaborator

Can one of the admins verify this patch?

Admins can comment ok to test to allow this one PR to run or add to allowlist to allow all future PRs from the same author to run.

@bouweandela bouweandela marked this pull request as ready for review December 22, 2023 21:43
@bouweandela
Copy link
Contributor Author

The failing test appears to be unrelated to this pull request.

@hendrikmakait hendrikmakait added array needs review Needs review from a contributor. feature Something is missing labels Jan 3, 2024
@hendrikmakait hendrikmakait self-requested a review January 3, 2024 08:35
@bouweandela
Copy link
Contributor Author

I updated this pull request so it includes the optimization in numpy/numpy#24663.

Copy link
Contributor

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

     15 files  +     12       15 suites  +12   3h 29m 27s ⏱️ + 3h 24m 24s
 13 002 tests +  7 830   11 734 ✅ +  7 331     929 💤 +   160  339 ❌ +339 
161 122 runs  +153 959  143 853 ✅ +137 875  16 930 💤 +15 745  339 ❌ +339 

For more details on these failures, see this check.

Results for commit 6ac5e6c. ± Comparison against base commit dde25d9.

@@ -1896,6 +1896,149 @@ def test_where_incorrect_args():
assert "either both or neither of x and y should be given" in str(e)


def _test_array_equal_parametrizations():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use a proper fixture here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand, could you explain in a bit more detail what you would like to see, please? I read through all the documentation on pytest.mark.parametrize and fixtures, but I cannot find how using a fixture would facilitate parametrizing a test. Or do you mean to drop pytest.mark.parametrize and write a single test that loops over all the test cases? That would prevent running the tests in parallel though.

As a side note: this test setup was copied from numpy/_core/tests/test_numeric.py, so it might be easier for future maintenance to keep modifications to a minimum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
array feature Something is missing needs review Needs review from a contributor.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants