Skip to content

Commit 3dc2631

Browse files
committed
Fix time bin count in compute_local_log_likelihood
Corrects the calculation of n_time to use the full length of the time array instead of subtracting one. This ensures proper alignment of time bins when computing local log likelihood.
1 parent 31521a1 commit 3dc2631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/non_local_detector/likelihoods/clusterless_gmm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ def compute_local_log_likelihood(
684684
position_time = np.asarray(position_time)
685685
position = _as_jnp(position if position.ndim > 1 else position[:, None])
686686

687-
n_time = time.shape[0] - 1
687+
n_time = time.shape[0]
688688

689689
# Interpolate position at bin times (use bin centers)
690690

0 commit comments

Comments
 (0)