Skip to content

Commit

Permalink
missing sub-method
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Jun 7, 2024
1 parent 0e177c1 commit 819e2f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spikeinterface/core/basesnippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit 819e2f6

Please sign in to comment.