Skip to content

Commit f87e7fc

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent beda4d5 commit f87e7fc

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

src/spikeinterface/sortingcomponents/matching/method_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
try:
1717
# kilosort licence (GPL 3) is forcing use to make an external package
1818
from spikeinterface_kilosort_reshape import KiloSortMatching
19+
1920
matching_methods["kilosort-matching"] = KiloSortMatching
2021
except ImportError:
2122
pass
22-

src/spikeinterface/sortingcomponents/tests/test_template_matching.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,13 @@ def test_find_spikes_from_templates(method, sorting_analyzer):
4545
"templates": templates,
4646
}
4747
method_kwargs = {}
48-
if method in ("naive", "tdc-peeler", "circus",):
48+
if method in (
49+
"naive",
50+
"tdc-peeler",
51+
"circus",
52+
):
4953
method_kwargs["noise_levels"] = noise_levels
50-
54+
5155
if method == "kilosort-matching":
5256
from spikeinterface.sortingcomponents.peak_selection import select_peaks
5357
from spikeinterface.sortingcomponents.tools import extract_waveform_at_max_channel
@@ -74,7 +78,6 @@ def test_find_spikes_from_templates(method, sorting_analyzer):
7478
method_kwargs["spatial_components"] = spatial_components
7579
method_kwargs["temporal_components"] = temporal_components
7680

77-
7881
# method_kwargs["wobble"] = {
7982
# "templates": waveform_extractor.get_all_templates(),
8083
# "nbefore": waveform_extractor.nbefore,
@@ -118,7 +121,7 @@ def test_find_spikes_from_templates(method, sorting_analyzer):
118121
# method = "tdc-peeler"
119122
# method = "circus"
120123
# method = "circus-omp-svd"
121-
# method = "wobble"
124+
# method = "wobble"
122125
method = "kilosort-matching"
123126

124127
test_find_spikes_from_templates(method, sorting_analyzer)

0 commit comments

Comments
 (0)