Skip to content

Commit 2300efe

Browse files
committed
oups
1 parent 482ffa1 commit 2300efe

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/spikeinterface/core/node_pipeline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def compute(self, traces, start_frame, end_frame, segment_index, max_margin, *ar
9696

9797

9898
class PeakSource(PipelineNode):
99-
# base class for peak detector or template matching
99+
100100
def get_trace_margin(self):
101101
raise NotImplementedError
102102

@@ -106,6 +106,7 @@ def get_dtype(self):
106106

107107
# this is used in sorting components
108108
class PeakDetector(PeakSource):
109+
# base class for peak detector or template matching
109110
pass
110111

111112

src/spikeinterface/sortingcomponents/matching/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import numpy as np
22
from spikeinterface.core import Templates
3-
from spikeinterface.core.node_pipeline import PeakSource
3+
from spikeinterface.core.node_pipeline import PeakDetector
44

55
_base_matching_dtype = [
66
("sample_index", "int64"),
@@ -10,7 +10,7 @@
1010
("segment_index", "int64"),
1111
]
1212

13-
class BaseTemplateMatching(PeakSource):
13+
class BaseTemplateMatching(PeakDetector):
1414
def __init__(self, recording, templates, return_output=True, parents=None):
1515
# TODO make a sharedmem of template here
1616
# TODO maybe check that channel_id are the same with recording
@@ -19,7 +19,7 @@ def __init__(self, recording, templates, return_output=True, parents=None):
1919
f"The templates supplied is of type {type(templates)} and must be a Templates"
2020
)
2121
self.templates = templates
22-
PeakSource.__init__(self, recording, return_output=return_output, parents=parents)
22+
PeakDetector.__init__(self, recording, return_output=return_output, parents=parents)
2323

2424
def get_dtype(self):
2525
return np.dtype(_base_matching_dtype)

0 commit comments

Comments
 (0)