-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 scheduler option to assert_eq
utilities
#8610
Conversation
Can one of the admins verify this patch? |
Are test failures below infra-related? |
Yeah the test failures mostly have to do with dask not being quite caught up with the latest release of pandas: #8580 |
ok to test |
Thanks @jsignell ! |
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.
This looks great! I just have one small suggestion
dask/array/tests/test_array_utils.py
Outdated
if isinstance(a, Array) and isinstance(b, Array): | ||
assert counter == 2 | ||
else: | ||
assert counter == 0 |
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.
I really like this test! But this part took me a minute to understand. I am wondering if something like this is clearer:
if isinstance(a, Array) and isinstance(b, Array): | |
assert counter == 2 | |
else: | |
assert counter == 0 | |
n_da_arrays = len([x for x in [a, b] if isinstance(x, Array)]) | |
assert counter == n_da_arrays |
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.
That's so smart! Committed, thank you.
Co-authored-by: Julia Signell <jsignell@gmail.com>
Thanks @xinrong-databricks! This is in :) |
Thank you @jsignell ! |
assert_eq
utilities #8583pre-commit run --all-files