Skip to content

Commit 3b8cfc6

Browse files
committed
Remove comments
1 parent 51ebab1 commit 3b8cfc6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/track_linearization/core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,11 +872,9 @@ def project_1d_to_2d(
872872
np.cumsum(edge_lengths[:-1] + gaps)
873873
]) # shape (n_edges,)
874874

875-
# --- vectorised lookup -----------------------------------------------------
876875
idx = np.searchsorted(cumulative, linear_position, side="right") - 1
877876
idx = np.clip(idx, 0, n_edges-1) # clamp to valid edge index
878877

879-
# handle NaNs early so they don't pollute math
880878
nan_mask = ~np.isfinite(linear_position)
881879
idx[nan_mask] = 0 # dummy index, will overwrite later
882880

0 commit comments

Comments
 (0)