File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,22 +24,22 @@ def run_once(
24
24
"""Run one size point and return (time_kdtree, time_matrix)."""
25
25
rng = np .random .default_rng (seed )
26
26
ids = list (range (n ))
27
-
27
+
28
28
# Collect times for each repeat with different random coordinates
29
29
kdtree_times : List [float ] = []
30
30
matrix_times : List [float ] = []
31
-
32
- for i in range (repeats ):
31
+
32
+ for _ in range (repeats ):
33
33
# Generate different coordinates for each repeat
34
34
coords = rng .random ((n , d ), dtype = float )
35
35
lat = CustomizeLattice (dimensionality = d , identifiers = ids , coordinates = coords )
36
-
36
+
37
37
# KDTree path - single measurement
38
38
t0 = time .perf_counter ()
39
39
lat ._build_neighbors (max_k = max_k , use_kdtree = True )
40
40
kdtree_times .append (time .perf_counter () - t0 )
41
-
42
- # Distance-matrix path - single measurement
41
+
42
+ # Distance-matrix path - single measurement
43
43
t0 = time .perf_counter ()
44
44
lat ._build_neighbors (max_k = max_k , use_kdtree = False )
45
45
matrix_times .append (time .perf_counter () - t0 )
You can’t perform that action at this time.
0 commit comments