Skip to content

Commit 7bb45a7

Browse files
Fix bug in returning null-dist of OSI and DSI
Refactor compute_null_dist calls to ignore first return value.
1 parent 8a3288c commit 7bb45a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

djimaging/tables/response/movingbar/orientation_utils_v2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ def compute_os_ds_idxs(snippets: np.ndarray, dir_order: np.ndarray, dt: float, n
141141
dsi_s, pref_dir_s = get_si(surrogate_v, sorted_directions, 1)
142142
# osi_s, pref_or_s = get_si(surrogate_v, sorted_directions, 2) # Not used atm
143143

144-
p_dsi, null_dist_dsi, _ = compute_null_dist(sorted_directions, projected.T, 1, iters=n_shuffles)
145-
p_osi, null_dist_osi, _ = compute_null_dist(sorted_directions, projected.T, 2, iters=n_shuffles)
144+
p_dsi, _, null_dist_dsi = compute_null_dist(sorted_directions, projected.T, 1, iters=n_shuffles)
145+
p_osi, _, null_dist_osi = compute_null_dist(sorted_directions, projected.T, 2, iters=n_shuffles)
146146

147147
d_qi = quality_index_ds(sorted_responses)
148148
on_off = get_on_off_index(time_component, dt=dt)

0 commit comments

Comments
 (0)