We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfb4613 commit 884894dCopy full SHA for 884894d
1 file changed
src/spikeinterface/sortingcomponents/matching/main.py
@@ -39,7 +39,6 @@ def find_spikes_from_templates(
39
Optionaly returns for debug purpose.
40
"""
41
from .method_list import matching_methods
42
- from .base import _base_matching_dtype
43
44
assert method in matching_methods, f"The 'method' {method} is not valid. Use a method from {matching_methods}"
45
@@ -50,7 +49,7 @@ def find_spikes_from_templates(
50
49
nodes = [node0]
51
assert "templates" in method_kwargs, "You must provide templates in method_kwargs"
52
if len(method_kwargs["templates"].unit_ids) == 0:
53
- return np.zeros(0, dtype=_base_matching_dtype)
+ return np.zeros(0, dtype=node0.get_dtype())
54
55
spikes = run_node_pipeline(
56
recording,
0 commit comments