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

Update matching routines to check input arrays for duplicates #828

Merged
merged 5 commits into from
Aug 23, 2024

Conversation

geordie666
Copy link
Contributor

This PR addresses issue #811.

@araichoor: In the end I used your suggested approach, utilizing np.count_nonzero(), in full. I tested a bunch of corner cases and I think your approach always returns the desired result. And it is very fast!

I also agree with @araichoor that it's actually desirable to break backwards compatibility in this case, as the results without checking for duplicates are essentially garbage.

@geordie666 geordie666 requested a review from araichoor August 20, 2024 22:27
@araichoor
Copy link

thanks!

@coveralls
Copy link

coveralls commented Aug 20, 2024

Coverage Status

coverage: 53.054% (+0.004%) from 53.05%
when pulling 6544f4c on ADM-match-dups
into 971d9d5 on main.

@moustakas
Copy link
Member

For the record, this PR looks good to me (I use the matching functionality quite extensively). Quick request: can a new tag be created after this PR (or soon after, in case there's some other stuff in progress)?

@geordie666 geordie666 merged commit bb0908c into main Aug 23, 2024
8 of 10 checks passed
@geordie666 geordie666 deleted the ADM-match-dups branch August 23, 2024 17:08
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.

4 participants