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

Enforce 1D bool arrays #24

Merged
merged 3 commits into from
Sep 27, 2017
Merged

Enforce 1D bool arrays #24

merged 3 commits into from
Sep 27, 2017

Conversation

jakirkham
Copy link
Owner

Adds some tests for internal utility functions and user facing API functions to ensure that if any bool array is not 1D, this will be raised as a ValueError.

Make sure to enforce 1-D bool arrays are provided to all
distance/dissimilarity functions operating on bool arrays.
Adds a test for `_bool_cmp_mtx_cnt` to make sure that both arrays are 1D
only. Will raise a `ValueError` if this is not the case.
Tests all bool measurements (distance or dissimilarity) raise if they
are provided an array that is not 1D.
@jakirkham jakirkham merged commit e1c6e1f into master Sep 27, 2017
@jakirkham jakirkham deleted the enforce_1d_bool_arrs branch September 27, 2017 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant