Skip to content

Commit

Permalink
Update src/spikeinterface/postprocessing/amplitude_scalings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgarcia authored Sep 27, 2023
1 parent b9b6c15 commit 8e4b43a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/postprocessing/amplitude_scalings.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def _are_unit_indices_overlapping(sparsity_mask, i, j):
bool
True if the unit indices i and j are overlapping, False otherwise
"""
if np.sum(np.logical_and(sparsity_mask[i], sparsity_mask[j])) > 0:
if np.any(sparsity_mask[i] & sparsity_mask[j]):
return True
else:
return False
Expand Down

0 comments on commit 8e4b43a

Please sign in to comment.