Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 5, 2024
1 parent a4ad437 commit e46b86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/core/sorting_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def generate_unit_ids_for_merge_group(old_unit_ids, units_to_merge, new_unit_ids
if new_unit_ids is not None:
# then only doing a consistency check
assert len(new_unit_ids) == len(units_to_merge), "new_unit_ids should have the same len as units_to_merge"
# new_unit_ids can also be part of old_unit_ids only inside the same group:
# new_unit_ids can also be part of old_unit_ids only inside the same group:
for i, new_unit_id in enumerate(new_unit_ids):
if new_unit_id in old_unit_ids:
assert new_unit_id in units_to_merge[i], "new_unit_ids already exists but outside the merged groups"
Expand Down

0 comments on commit e46b86a

Please sign in to comment.