14 lines
198 B
Python
14 lines
198 B
Python
|
import sys
|
||
|
import pickle
|
||
|
import time
|
||
|
|
||
|
import scipy.spatial
|
||
|
|
||
|
|
||
|
start = time.time()
|
||
|
g = pickle.load(open(sys.argv[1], 'r'))
|
||
|
g.tree = scipy.spatial.KDTree(g.points)
|
||
|
end = time.time()
|
||
|
|
||
|
print end - start
|