From ab1d01bd60a305ed4f4babb886400eb893ffccdf Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Tue, 31 Oct 2023 08:34:15 -0400 Subject: [PATCH] remove deprecated code --- .../postprocessing/template_tools.py | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/spikeinterface/postprocessing/template_tools.py diff --git a/src/spikeinterface/postprocessing/template_tools.py b/src/spikeinterface/postprocessing/template_tools.py deleted file mode 100644 index 0d992a0046..0000000000 --- a/src/spikeinterface/postprocessing/template_tools.py +++ /dev/null @@ -1,39 +0,0 @@ -# This is kept in 0.97.0 and then will be removed - -import warnings - -import spikeinterface.core.template_tools as tt - - -def _warn(): - warnings.warn( - "The spikeinterface.postprocessing.template_tools is submodule is deprecated." - "Use spikeinterface.core.template_tools instead", - DeprecationWarning, - stacklevel=2, - ) - - -def get_template_amplitudes(*args, **kwargs): - _warn() - return tt.get_template_amplitudes(*args, **kwargs) - - -def get_template_extremum_channel(*args, **kwargs): - _warn() - return tt.get_template_extremum_channel(*args, **kwargs) - - -def get_template_channel_sparsity(*args, **kwargs): - _warn() - return tt.get_template_channel_sparsity(*args, **kwargs) - - -def get_template_extremum_channel_peak_shift(*args, **kwargs): - _warn() - return tt.get_template_extremum_channel_peak_shift(*args, **kwargs) - - -def get_template_extremum_amplitude(*args, **kwargs): - _warn() - return tt.get_template_extremum_amplitude(*args, **kwargs)