smbinterp/tools/timing/load_pickle.py
2011-09-27 15:29:23 -06:00

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