Skip to content

Implement check_consistent_length #900

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Conversation

freddyaboulton
Copy link

Fixes #865

@@ -241,8 +241,8 @@ def check_random_state(random_state):
raise TypeError("Unexpected type '{}'".format(type(random_state)))


def check_matching_blocks(*arrays):
"""Check that the partitioning structure for many arrays matches.
def _check_matching_blocks(*arrays, check_first_dim_only=False):
Copy link
Author

Choose a reason for hiding this comment

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

I thought this was the best way to re-use code between check_consistent_length and check_matching_blocks without changing the api of either function.

@freddyaboulton freddyaboulton marked this pull request as ready for review January 18, 2022 20:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement check_lengths
1 participant