Skip to content

Commit 0b38522

Browse files
committed
fix black
1 parent d372f72 commit 0b38522

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/lattice_neighbor_time_compare.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)