Skip to content

Commit 7857860

Browse files
committed
[fix] fix bug in mask window
1 parent 7a7683f commit 7857860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/movie_decoding/utils/check_free_recall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def get_empirical_concept_ps_yyding(
321321

322322
mask = np.ones(len(activations), dtype=bool)
323323
mask[np.concatenate(range_indices)] = False
324-
if len(surrogate_mask) > 0:
324+
if len(surrogate_mask) > 1:
325325
mask[surrogate_mask[0] : surrogate_mask[1]] = False
326326

327327
avg_activation = np.mean(target_activations)

0 commit comments

Comments
 (0)