From 5a05753be0976eeb41c89a8a93bd8c6142624dc9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 18:44:14 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/spikeinterface/postprocessing/principal_component.py | 2 +- src/spikeinterface/preprocessing/motion.py | 2 +- src/spikeinterface/qualitymetrics/pca_metrics.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spikeinterface/postprocessing/principal_component.py b/src/spikeinterface/postprocessing/principal_component.py index 100eedc1d1..233625e09e 100644 --- a/src/spikeinterface/postprocessing/principal_component.py +++ b/src/spikeinterface/postprocessing/principal_component.py @@ -734,7 +734,7 @@ def compute_principal_components( >>> # run for all spikes in the SortingExtractor >>> pc.run_for_all_spikes(file_path="all_pca_projections.npy") """ - + if load_if_exists and waveform_extractor.is_extension(WaveformPrincipalComponent.extension_name): pc = waveform_extractor.load_extension(WaveformPrincipalComponent.extension_name) else: diff --git a/src/spikeinterface/preprocessing/motion.py b/src/spikeinterface/preprocessing/motion.py index cc2ee9d801..e2ef6e6794 100644 --- a/src/spikeinterface/preprocessing/motion.py +++ b/src/spikeinterface/preprocessing/motion.py @@ -186,7 +186,7 @@ def correct_motion( Parameters for each step are handled as separate dictionaries. For more information please check the documentation of the following functions: - + * :py:func:`~spikeinterface.sortingcomponents.peak_detection.detect_peaks` * :py:func:`~spikeinterface.sortingcomponents.peak_selection.select_peaks` * :py:func:`~spikeinterface.sortingcomponents.peak_localization.localize_peaks` diff --git a/src/spikeinterface/qualitymetrics/pca_metrics.py b/src/spikeinterface/qualitymetrics/pca_metrics.py index 2383622907..d1f7534e3c 100644 --- a/src/spikeinterface/qualitymetrics/pca_metrics.py +++ b/src/spikeinterface/qualitymetrics/pca_metrics.py @@ -799,7 +799,7 @@ def silhouette_score(all_pcs, all_labels, this_unit_id): ------- unit_silhouette_score : float Silhouette Score for this unit - + References ------------ Based on [Rousseeuw]_