From 015723a3928bed5785fbac991c4d5b42b3a9a7a1 Mon Sep 17 00:00:00 2001 From: jorenham Date: Tue, 17 Dec 2024 16:40:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=20`signal`:=20deprecated?= =?UTF-8?q?=201.15.0=20removals?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scipy-stubs/signal/bsplines.pyi | 11 +---------- scipy-stubs/signal/filter_design.pyi | 6 +++++- scipy-stubs/signal/signaltools.pyi | 3 --- scipy-stubs/signal/spline.pyi | 14 ++------------ scipy-stubs/signal/wavelets.pyi | 23 ++--------------------- 5 files changed, 10 insertions(+), 47 deletions(-) diff --git a/scipy-stubs/signal/bsplines.pyi b/scipy-stubs/signal/bsplines.pyi index 657413df..5e152975 100644 --- a/scipy-stubs/signal/bsplines.pyi +++ b/scipy-stubs/signal/bsplines.pyi @@ -1,16 +1,7 @@ # This module is not meant for public use and will be removed in SciPy v2.0.0. from typing_extensions import deprecated -__all__ = [ - "cspline1d", - "cspline1d_eval", - "cspline2d", - "gauss_spline", - "qspline1d", - "qspline1d_eval", - "sepfir2d", - "spline_filter", -] +__all__ = ["cspline1d", "cspline1d_eval", "cspline2d", "gauss_spline", "qspline1d", "qspline1d_eval", "sepfir2d", "spline_filter"] @deprecated("will be removed in SciPy v2.0.0") def cspline1d(signal: object, lamb: object = ...) -> object: ... diff --git a/scipy-stubs/signal/filter_design.pyi b/scipy-stubs/signal/filter_design.pyi index ccf20f27..169cf128 100644 --- a/scipy-stubs/signal/filter_design.pyi +++ b/scipy-stubs/signal/filter_design.pyi @@ -24,6 +24,7 @@ __all__ = [ "freqs", "freqs_zpk", "freqz", + "freqz_sos", "freqz_zpk", "gammatone", "group_delay", @@ -74,7 +75,10 @@ def freqz_zpk(z: object, p: object, k: object, worN: object = ..., whole: object @deprecated("will be removed in SciPy v2.0.0") def group_delay(system: object, w: object = ..., whole: object = ..., fs: object = ...) -> object: ... @deprecated("will be removed in SciPy v2.0.0") -def sosfreqz(sos: object, worN: object = ..., whole: object = ..., fs: object = ...) -> object: ... +def freqz_sos(sos: object, worN: object = ..., whole: object = ..., fs: object = ...) -> object: ... + +sosfreqz = freqz_sos # pyright: ignore[reportDeprecated] + @deprecated("will be removed in SciPy v2.0.0") def tf2zpk(b: object, a: object) -> object: ... @deprecated("will be removed in SciPy v2.0.0") diff --git a/scipy-stubs/signal/signaltools.pyi b/scipy-stubs/signal/signaltools.pyi index 1954fb70..c650848e 100644 --- a/scipy-stubs/signal/signaltools.pyi +++ b/scipy-stubs/signal/signaltools.pyi @@ -4,7 +4,6 @@ from typing_extensions import Self, deprecated __all__ = [ "cheby1", "choose_conv_method", - "cmplx_sort", "convolve", "convolve2d", "correlate", @@ -199,5 +198,3 @@ def decimate( axis: object = ..., zero_phase: object = ..., ) -> object: ... -@deprecated("will be removed in SciPy v1.15.0") -def cmplx_sort(p: object) -> object: ... diff --git a/scipy-stubs/signal/spline.pyi b/scipy-stubs/signal/spline.pyi index 9efd1170..ce854e90 100644 --- a/scipy-stubs/signal/spline.pyi +++ b/scipy-stubs/signal/spline.pyi @@ -1,18 +1,8 @@ # This module is not meant for public use and will be removed in SciPy v2.0.0. -from typing_extensions import deprecated -__all__ = ["cspline2d", "qspline2d", "sepfir2d", "symiirorder1", "symiirorder2"] +from typing_extensions import deprecated -# _spline_filters -@deprecated("will be removed in SciPy v2.0.0") -def qspline2d(signal: object, lamb: object = ..., precision: object = ...) -> object: ... -@deprecated("will be removed in SciPy v2.0.0") -def cspline2d(signal: object, lamb: object = ..., precision: object = ...) -> object: ... -@deprecated("will be removed in SciPy v2.0.0") -def symiirorder1(signal: object, c0: object, z1: object, precision: object = ...) -> object: ... -@deprecated("will be removed in SciPy v2.0.0") -def symiirorder2(input: object, r: object, omega: object, precision: object = ...) -> object: ... +__all__ = ["sepfir2d"] -# _spline @deprecated("will be removed in SciPy v2.0.0") def sepfir2d(input: object, hrow: object, hcol: object) -> object: ... diff --git a/scipy-stubs/signal/wavelets.pyi b/scipy-stubs/signal/wavelets.pyi index 91d1216f..1a67e605 100644 --- a/scipy-stubs/signal/wavelets.pyi +++ b/scipy-stubs/signal/wavelets.pyi @@ -1,21 +1,2 @@ -# This module is not meant for public use and will be removed in SciPy v1.15.0. -from typing_extensions import deprecated - -__all__ = ["cascade", "convolve", "cwt", "daub", "morlet", "morlet2", "qmf", "ricker"] - -@deprecated("will be removed in SciPy v1.15.0") -def convolve(in1: object, in2: object, mode: object = ..., method: object = ...) -> object: ... -@deprecated("will be removed in SciPy v1.15.0") -def cwt(data: object, wavelet: object, widths: object, dtype: object = ..., **kwargs: object) -> object: ... -@deprecated("will be removed in SciPy v1.15.0") -def cascade(hk: object, J: object = ...) -> object: ... -@deprecated("will be removed in SciPy v1.15.0") -def morlet(M: object, w: object = ..., s: object = ..., complete: object = ...) -> object: ... -@deprecated("will be removed in SciPy v1.15.0") -def daub(p: object) -> object: ... -@deprecated("will be removed in SciPy v1.15.0") -def morlet2(M: object, s: object, w: object = ...) -> object: ... -@deprecated("will be removed in SciPy v1.15.0") -def qmf(hk: object) -> object: ... -@deprecated("will be removed in SciPy v1.15.0") -def ricker(points: object, a: object) -> object: ... +# This file is not meant for public use and will be removed in SciPy v2.0.0. +__all__: list[str] = []