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

Doesn't work with numpy arrays #7

Open
vidstige opened this issue Nov 13, 2022 · 1 comment
Open

Doesn't work with numpy arrays #7

vidstige opened this issue Nov 13, 2022 · 1 comment

Comments

@vidstige
Copy link

I'm getting sort got unexpected keyword argument key. I don't think numpy rows can be sorted like that. Looks like an awesome library otherwise!

@egnima
Copy link

egnima commented Apr 14, 2024

This might be a bit late, but there's a fix. Change line 42, where the sorting takes place, to points = points[points[:, i].argsort()]

Source: stackoverflow magic

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

2 participants