Skip to content

Commit 884894d

Browse files
committed
WIP
1 parent cfb4613 commit 884894d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • src/spikeinterface/sortingcomponents/matching

src/spikeinterface/sortingcomponents/matching/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def find_spikes_from_templates(
3939
Optionaly returns for debug purpose.
4040
"""
4141
from .method_list import matching_methods
42-
from .base import _base_matching_dtype
4342

4443
assert method in matching_methods, f"The 'method' {method} is not valid. Use a method from {matching_methods}"
4544

@@ -50,7 +49,7 @@ def find_spikes_from_templates(
5049
nodes = [node0]
5150
assert "templates" in method_kwargs, "You must provide templates in method_kwargs"
5251
if len(method_kwargs["templates"].unit_ids) == 0:
53-
return np.zeros(0, dtype=_base_matching_dtype)
52+
return np.zeros(0, dtype=node0.get_dtype())
5453

5554
spikes = run_node_pipeline(
5655
recording,

0 commit comments

Comments
 (0)