Skip to content

Commit 8ced3d5

Browse files
committed
wip refactor template matching with nodepipeline
1 parent a0b1cd1 commit 8ced3d5

5 files changed

Lines changed: 1268 additions & 547 deletions

File tree

src/spikeinterface/sortingcomponents/matching/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ 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
1717

18-
assert isinstance(d["templates"], Templates), (
19-
f"The templates supplied is of type {type(d['templates'])} " f"and must be a Templates"
18+
assert isinstance(templates, Templates), (
19+
f"The templates supplied is of type {type(templates)} and must be a Templates"
2020
)
2121
self.templates = templates
2222
PeakSource.__init__(self, recording, return_output=return_output, parents=parents)

0 commit comments

Comments
 (0)