You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using your code on my own data and encountered several issues. It appears to boil down to an axis out of bounds issue.
Running your sample code (using python 2.7.3 on linux) returns the following error:
"""
d, i = T.query([45.0, 10.0, 10.0], k=4)
File "/usr/local/lib/python2.7/dist-packages/periodic_kdtree.py", line 306, in query
hits = self.__query(x, k=k, eps=eps, p=p, distance_upper_bound=distance_upper_bound)
File "/usr/local/lib/python2.7/dist-packages/periodic_kdtree.py", line 217, in __query
self.max_distance_upper_bound)
File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 1894, in amin
return _wrapit(a, 'min', axis, out)
File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 37, in _wrapit
result = getattr(asarray(obj),method)(_args, *_kwds)
ValueError: axis(=15) out of bounds
"""
The text was updated successfully, but these errors were encountered:
Hi there,
I tried using your code on my own data and encountered several issues. It appears to boil down to an axis out of bounds issue.
Running your sample code (using python 2.7.3 on linux) returns the following error:
"""
d, i = T.query([45.0, 10.0, 10.0], k=4)
File "/usr/local/lib/python2.7/dist-packages/periodic_kdtree.py", line 306, in query
hits = self.__query(x, k=k, eps=eps, p=p, distance_upper_bound=distance_upper_bound)
File "/usr/local/lib/python2.7/dist-packages/periodic_kdtree.py", line 217, in __query
self.max_distance_upper_bound)
File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 1894, in amin
return _wrapit(a, 'min', axis, out)
File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 37, in _wrapit
result = getattr(asarray(obj),method)(_args, *_kwds)
ValueError: axis(=15) out of bounds
"""
The text was updated successfully, but these errors were encountered: