diff --git a/src/spikeinterface/exporters/report.py b/src/spikeinterface/exporters/report.py index 484da83342..ab08401382 100644 --- a/src/spikeinterface/exporters/report.py +++ b/src/spikeinterface/exporters/report.py @@ -22,8 +22,8 @@ def export_report( """ Exports a SI spike sorting report. The report includes summary figures of the spike sorting output. What is plotted depends on what has been calculated. Unit locations and unit waveforms are always included. - Unit waveform densities, correlograms and spike amplitudes are plotted if `waveforms`, `correlograms` - and 'template_similarity', and `spike_amplitudes` have been computed for the given `sorting_analyzer`. + Unit waveform densities, correlograms and spike amplitudes are plotted if `waveforms`, `correlograms`, + and `spike_amplitudes` have been computed for the given `sorting_analyzer`. Parameters ---------- diff --git a/src/spikeinterface/widgets/autocorrelograms.py b/src/spikeinterface/widgets/autocorrelograms.py index c8acd93dc2..c211a277f8 100644 --- a/src/spikeinterface/widgets/autocorrelograms.py +++ b/src/spikeinterface/widgets/autocorrelograms.py @@ -9,7 +9,13 @@ class AutoCorrelogramsWidget(CrossCorrelogramsWidget): # the doc is copied form CrossCorrelogramsWidget def __init__(self, *args, **kargs): - CrossCorrelogramsWidget.__init__(self, *args, **kargs) + _ = kargs.pop("min_similarity_for_correlograms", 0.0) + CrossCorrelogramsWidget.__init__( + self, + *args, + **kargs, + min_similarity_for_correlograms=None, + ) def plot_matplotlib(self, data_plot, **backend_kwargs): import matplotlib.pyplot as plt diff --git a/src/spikeinterface/widgets/crosscorrelograms.py b/src/spikeinterface/widgets/crosscorrelograms.py index cdb2041aa3..88dd803323 100644 --- a/src/spikeinterface/widgets/crosscorrelograms.py +++ b/src/spikeinterface/widgets/crosscorrelograms.py @@ -21,7 +21,8 @@ class CrossCorrelogramsWidget(BaseWidget): List of unit ids min_similarity_for_correlograms : float, default: 0.2 For sortingview backend. Threshold for computing pair-wise cross-correlograms. - If template similarity between two units is below this threshold, the cross-correlogram is not displayed + If template similarity between two units is below this threshold, the cross-correlogram is not displayed. + For auto-correlograms plot, this is automatically set to None. window_ms : float, default: 100.0 Window for CCGs in ms. If correlograms are already computed (e.g. with SortingAnalyzer), this argument is ignored diff --git a/src/spikeinterface/widgets/unit_summary.py b/src/spikeinterface/widgets/unit_summary.py index d8cbeb7bb3..9466110110 100644 --- a/src/spikeinterface/widgets/unit_summary.py +++ b/src/spikeinterface/widgets/unit_summary.py @@ -108,7 +108,7 @@ def plot_matplotlib(self, data_plot, **backend_kwargs): fig = self.figure nrows = 2 ncols = 2 - if sorting_analyzer.has_extension("correlograms") and sorting_analyzer.has_extension("template_similarity"): + if sorting_analyzer.has_extension("correlograms"): ncols += 1 if sorting_analyzer.has_extension("waveforms"): ncols += 1 @@ -172,7 +172,7 @@ def plot_matplotlib(self, data_plot, **backend_kwargs): col_counter += 1 ax_waveform_density.set_ylabel(None) - if sorting_analyzer.has_extension("correlograms") and sorting_analyzer.has_extension("template_similarity"): + if sorting_analyzer.has_extension("correlograms"): ax_correlograms = fig.add_subplot(gs[:2, col_counter]) AutoCorrelogramsWidget( sorting_analyzer,