Python-KD-Tree
Python-KD-Tree copied to clipboard
Doesn't work with numpy arrays
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!
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