From 819e2f6563888804257a82c25d2b8df232aa7c6c Mon Sep 17 00:00:00 2001 From: Heberto Mayorquin Date: Fri, 7 Jun 2024 10:11:35 -0600 Subject: [PATCH] missing sub-method --- src/spikeinterface/core/basesnippets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/spikeinterface/core/basesnippets.py b/src/spikeinterface/core/basesnippets.py index f96bec3b51..4f6cbacd6d 100644 --- a/src/spikeinterface/core/basesnippets.py +++ b/src/spikeinterface/core/basesnippets.py @@ -135,13 +135,14 @@ def get_snippets_from_frames( def _save(self, format="binary", **save_kwargs): raise NotImplementedError - def _select_channels(self, channel_ids: list | np.array | tuple) -> "BaseSnippets": + def select_channels(self, channel_ids: list | np.array | tuple) -> "BaseSnippets": from .channelslice import ChannelSliceSnippets return ChannelSliceSnippets(self, channel_ids) def _channel_slice(self, channel_ids, renamed_channel_ids=None): from .channelslice import ChannelSliceSnippets + import warnings warnings.warn( "Snippets.channel_slice will be removed in version 0.103, use `select_channels` or `rename_channels` instead.",