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(
2424 """Run one size point and return (time_kdtree, time_matrix)."""
2525 rng = np .random .default_rng (seed )
2626 ids = list (range (n ))
27-
27+
2828 # Collect times for each repeat with different random coordinates
2929 kdtree_times : List [float ] = []
3030 matrix_times : List [float ] = []
31-
32- for i in range (repeats ):
31+
32+ for _ in range (repeats ):
3333 # Generate different coordinates for each repeat
3434 coords = rng .random ((n , d ), dtype = float )
3535 lat = CustomizeLattice (dimensionality = d , identifiers = ids , coordinates = coords )
36-
36+
3737 # KDTree path - single measurement
3838 t0 = time .perf_counter ()
3939 lat ._build_neighbors (max_k = max_k , use_kdtree = True )
4040 kdtree_times .append (time .perf_counter () - t0 )
41-
42- # Distance-matrix path - single measurement
41+
42+ # Distance-matrix path - single measurement
4343 t0 = time .perf_counter ()
4444 lat ._build_neighbors (max_k = max_k , use_kdtree = False )
4545 matrix_times .append (time .perf_counter () - t0 )
You can’t perform that action at this time.
0 commit comments