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

Potential bug in points_contain_duplicates #8

Open
sweetbeet opened this issue Jun 3, 2024 · 0 comments
Open

Potential bug in points_contain_duplicates #8

sweetbeet opened this issue Jun 3, 2024 · 0 comments

Comments

@sweetbeet
Copy link

sweetbeet commented Jun 3, 2024

def points_contain_duplicates(self):

I believe we need to add axis=0 as an argument to np.unique here since we don't want a 2D point to be repeated, so we'll have

vals, count = np.unique(points, axis = 0,return_counts=True)

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

No branches or pull requests

1 participant