Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 15, 2024
1 parent 80cca25 commit 801a362
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/spikeinterface/core/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def to_sparse(self, sparsity):
unit_ids=self.unit_ids,
probe=self.probe,
check_for_consistent_sparsity=self.check_for_consistent_sparsity,
is_scaled=self.is_scaled
is_scaled=self.is_scaled,
)

def get_one_template_dense(self, unit_index):
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/sorters/internal/spyking_circus2.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Spykingcircus2Sorter(ComponentsBasedSorter):
"general": {"ms_before": 2, "ms_after": 2, "radius_um": 50},
"sparsity": {"method": "snr", "amplitude_mode": "peak_to_peak", "threshold": 6},
"filtering": {"freq_min": 150, "freq_max": 7000, "ftype": "bessel", "filter_order": 2},
"whitening": {"mode": "local", "regularize": False, "radius_um" : 150},
"whitening": {"mode": "local", "regularize": False, "radius_um": 150},
"detection": {"peak_sign": "neg", "detect_threshold": 4},
"selection": {
"method": "uniform",
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/sortingcomponents/clustering/circus.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def main_function(cls, recording, peaks, params, job_kwargs=dict()):

if params["noise_levels"] is None:
params["noise_levels"] = get_noise_levels(recording, return_scaled=False)

sparsity = compute_sparsity(templates, noise_levels=params["noise_levels"], **params["sparsity"])
templates = templates.to_sparse(sparsity)
empty_templates = templates.sparsity_mask.sum(axis=1) == 0
Expand Down

0 comments on commit 801a362

Please sign in to comment.