From 0c96661505cf354b520eeb3934ad3605b862dafc Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Wed, 1 May 2024 16:50:07 -0400 Subject: [PATCH] allow for basesorting --- src/spikeinterface/widgets/crosscorrelograms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/spikeinterface/widgets/crosscorrelograms.py b/src/spikeinterface/widgets/crosscorrelograms.py index 6eb565d56a..e70a5775e6 100644 --- a/src/spikeinterface/widgets/crosscorrelograms.py +++ b/src/spikeinterface/widgets/crosscorrelograms.py @@ -46,7 +46,9 @@ def __init__( backend=None, **backend_kwargs, ): - sorting_analyzer_or_sorting = self.ensure_sorting_analyzer(sorting_analyzer_or_sorting) + + if not isinstance(sorting_analyzer_or_sorting, BaseSorting): + sorting_analyzer_or_sorting = self.ensure_sorting_analyzer(sorting_analyzer_or_sorting) if min_similarity_for_correlograms is None: min_similarity_for_correlograms = 0