Skip to content

Commit

Permalink
Merge branch 'merging_units' of github.com:yger/spikeinterface into m…
Browse files Browse the repository at this point in the history
…erging_units
  • Loading branch information
yger committed Jun 26, 2024
2 parents 84812d5 + df44a0a commit 73e8eaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/spikeinterface/core/sorting_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from spikeinterface.core import NumpySorting



def spike_vector_to_spike_trains(spike_vector: list[np.array], unit_ids: np.array) -> dict[dict[str, np.array]]:
"""
Computes all spike trains for all units/segments from a spike vector list.
Expand Down Expand Up @@ -267,7 +266,7 @@ def apply_merges_to_sorting(sorting, units_to_merge, new_unit_ids=None, censor_m

spikes = sorting.to_spike_vector().copy()
to_keep = np.ones(len(spikes), dtype=bool)

new_unit_ids = get_new_unit_ids_for_merges(sorting, units_to_merge, new_unit_ids)

all_unit_ids = get_ids_after_merging(sorting, units_to_merge, new_unit_ids)
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/core/tests/test_sortinganalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def _check_sorting_analyzers(sorting_analyzer, original_sorting, cache_folder):
else:
folder = None
sorting_analyzer4 = sorting_analyzer.merge_units(
units_to_merge=[[0, 1]], new_unit_ids=[50], format=format, folder=folder, mode='hard'
units_to_merge=[[0, 1]], new_unit_ids=[50], format=format, folder=folder, mode="hard"
)

# test compute with extension-specific params
Expand Down

0 comments on commit 73e8eaa

Please sign in to comment.