From e46b86a02c6fde2dc9539857a0ff5b16728c3419 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 5 Jul 2024 17:53:49 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/spikeinterface/core/sorting_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spikeinterface/core/sorting_tools.py b/src/spikeinterface/core/sorting_tools.py index d2104eec73..918d95bf52 100644 --- a/src/spikeinterface/core/sorting_tools.py +++ b/src/spikeinterface/core/sorting_tools.py @@ -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"