added some code to time loading from gmsh vs. from pickle
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user